mirror of https://github.com/BOINC/boinc.git
Drupal: Fix post counter in import process
Posts imported counter was resetting on batch loop rather than per topic, resulting in the wrong number of posts being reported in status messages as imported for a given topic (DBOINC-145)
This commit is contained in:
parent
0a143452f3
commit
69fe2d07f2
|
@ -2290,7 +2290,6 @@ function boincimport_posts_op($offset, $batch_size, &$context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$input_format = variable_get('boincimport_input_format', 0);
|
$input_format = variable_get('boincimport_input_format', 0);
|
||||||
$posts_imported = 0;
|
|
||||||
|
|
||||||
// Get the topics with posts to import
|
// Get the topics with posts to import
|
||||||
db_set_active('boinc');
|
db_set_active('boinc');
|
||||||
|
@ -2315,6 +2314,7 @@ function boincimport_posts_op($offset, $batch_size, &$context) {
|
||||||
|
|
||||||
$first_post = true;
|
$first_post = true;
|
||||||
$success = FALSE;
|
$success = FALSE;
|
||||||
|
$posts_imported = 0;
|
||||||
$empty_posts = 0;
|
$empty_posts = 0;
|
||||||
$error_posts = 0;
|
$error_posts = 0;
|
||||||
$duplicate_posts = 0;
|
$duplicate_posts = 0;
|
||||||
|
|
Loading…
Reference in New Issue