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:
Tristan Olive 2015-11-04 22:39:16 -05:00
parent 0a143452f3
commit 69fe2d07f2
1 changed files with 1 additions and 1 deletions

View File

@ -2290,7 +2290,6 @@ function boincimport_posts_op($offset, $batch_size, &$context) {
}
$input_format = variable_get('boincimport_input_format', 0);
$posts_imported = 0;
// Get the topics with posts to import
db_set_active('boinc');
@ -2315,6 +2314,7 @@ function boincimport_posts_op($offset, $batch_size, &$context) {
$first_post = true;
$success = FALSE;
$posts_imported = 0;
$empty_posts = 0;
$error_posts = 0;
$duplicate_posts = 0;