Bug #5208 - Training bacup/restore tool: Final cleaning code.

skala
Ivan Tcholakov 16 years ago
parent b53ea6cce1
commit a228f6d428
  1. 4
      main/coursecopy/classes/CourseBuilder.class.php
  2. 4
      main/coursecopy/classes/CourseRecycler.class.php
  3. 3
      main/coursecopy/classes/CourseRestorer.class.php

@ -61,10 +61,7 @@ class CourseBuilder
$this->build_announcements();
$this->build_links();
$this->build_tool_intro();
// Enabled by Ivan Tcholakov, 27-AUG-2009.
////$this->build_forums();
$this->build_forums();
//
$this->build_documents();
$this->build_course_descriptions();
$this->build_quizzes();
@ -450,7 +447,6 @@ class CourseBuilder
while ($obj = Database::fetch_object($db_result))
{
$items = array();
$sql_items = "SELECT * FROM ".$table_item." WHERE lp_id = ".$obj->id."";
$db_items = api_sql_query($sql_items);

@ -80,12 +80,8 @@ class CourseRecycler
$this->recycle_events();
$this->recycle_announcements();
$this->recycle_documents();
// Enabled by Ivan Tcholakov, 27-AUG-2009.
////$this->recycle_forums();
////$this->recycle_forum_categories();
$this->recycle_forums();
$this->recycle_forum_categories();
//
$this->recycle_quizzes();
$this->recycle_surveys();
$this->recycle_learnpaths();

@ -102,10 +102,7 @@ class CourseRestorer
$this->restore_documents();
$this->restore_scorm_documents();
$this->restore_course_descriptions();
// Enabled by Ivan Tcholakov, 30-AUG-2009.
////$this->restore_forums();
$this->restore_forums();
//
$this->restore_quizzes(); // after restore_documents! (for correct import of sound/video)
$this->restore_learnpaths();
$this->restore_surveys();

Loading…
Cancel
Save