Browse Source

Fix table name.

Julio Montoya 10 years ago
parent
commit
2d7aaae28a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main/coursecopy/classes/CourseRestorer.class.php

+ 2 - 2
main/coursecopy/classes/CourseRestorer.class.php

@@ -2512,8 +2512,8 @@ class CourseRestorer
     {
 		if ($this->course->has_resources(RESOURCE_WIKI)) {
 			// wiki table of the target course
-			$table_wiki 		= Database :: get_course_table('wiki');
-			$table_wiki_conf 	= Database :: get_course_table('wiki_conf');
+			$table_wiki 		= Database :: get_course_table(TABLE_WIKI);
+			$table_wiki_conf 	= Database :: get_course_table(TABLE_WIKI_CONF);
 
 			// storing all the resources that have to be copied in an array
 			$resources = $this->course->resources;