Commit 0529186c authored by Tristan Olive's avatar Tristan Olive
Browse files

Drupal: Don't count special hidden container as being imported during forum import

(DBOINC-145)
parent 68d4f095
......@@ -1637,7 +1637,7 @@ function boincimport_forum_categories_op($category, $forum_vid, $pre, $create_hi
if (!$category AND $create_hidden) {
// Create the special "hidden" container
$category = new stdClass();
$category->name = t('Hidden');
$category->name = 'Hidden';
$category->id = 0;
$hidden = TRUE;
}
......@@ -1682,8 +1682,13 @@ function boincimport_forum_categories_op($category, $forum_vid, $pre, $create_hi
$message = '';
if ($success) {
// Store some result for post-processing in the finished callback.
$context['results']['categories']['success'][] = $category->id;
$message = "Successfully imported container {$category->id}";
if (!$category AND $create_hidden) {
$message = "Created special hidden container";
}
else {
$context['results']['categories']['success'][] = $category->id;
$message = "Successfully imported container {$category->id}";
}
}
else {
$context['results']['categories']['failure'][] = $category->id;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment