Fix import see #8274

remotes/angel/1.11.x
jmontoyaa 9 years ago
parent 325c354f21
commit bf6238c178
  1. 28
      src/Chamilo/CourseBundle/Component/CourseCopy/CourseArchiver.php
  2. 1
      src/Chamilo/CourseBundle/Component/CourseCopy/CourseBuilder.php

@ -222,8 +222,34 @@ class CourseArchiver
@fclose($fp);
class_alias('Chamilo\CourseBundle\Component\CourseCopy\Course', 'Course');
class_alias('Chamilo\CourseBundle\Component\CourseCopy\Resources\Announcement', 'Announcement');
class_alias('Chamilo\CourseBundle\Component\CourseCopy\Resources\Attendance', 'Attendance');
class_alias('Chamilo\CourseBundle\Component\CourseCopy\Resources\CalendarEvent', 'CalendarEvent');
class_alias('Chamilo\CourseBundle\Component\CourseCopy\Resources\CourseCopyLearnpath', 'CourseCopyLearnpath');
class_alias('Chamilo\CourseBundle\Component\CourseCopy\Resources\CourseCopyTestcategory', 'CourseCopyTestcategory');
class_alias('Chamilo\CourseBundle\Component\CourseCopy\Resources\CourseDescription', 'CourseDescription');
class_alias('Chamilo\CourseBundle\Component\CourseCopy\Resources\CourseSession', 'CourseSession');
class_alias('Chamilo\CourseBundle\Component\CourseCopy\Resources\Document', 'Document');
class_alias('Chamilo\CourseBundle\Component\CourseCopy\Resources\Forum', 'Forum');
class_alias('Chamilo\CourseBundle\Component\CourseCopy\Resources\ForumCategory', 'ForumCategory');
class_alias('Chamilo\CourseBundle\Component\CourseCopy\Resources\ForumPost', 'ForumPost');
class_alias('Chamilo\CourseBundle\Component\CourseCopy\Resources\ForumTopic', 'ForumTopic');
class_alias('Chamilo\CourseBundle\Component\CourseCopy\Resources\Glossary', 'Glossary');
class_alias('Chamilo\CourseBundle\Component\CourseCopy\Resources\GradeBookBackup', 'GradeBookBackup');
class_alias('Chamilo\CourseBundle\Component\CourseCopy\Resources\Link', 'Link');
class_alias('Chamilo\CourseBundle\Component\CourseCopy\Resources\LinkCategory', 'LinkCategory');
class_alias('Chamilo\CourseBundle\Component\CourseCopy\Resources\Quiz', 'Quiz');
class_alias('Chamilo\CourseBundle\Component\CourseCopy\Resources\QuizQuestion', 'QuizQuestion');
class_alias('Chamilo\CourseBundle\Component\CourseCopy\Resources\QuizQuestionOption', 'QuizQuestionOption');
class_alias('Chamilo\CourseBundle\Component\CourseCopy\Resources\ScormDocument', 'ScormDocument');
class_alias('Chamilo\CourseBundle\Component\CourseCopy\Resources\Survey', 'Survey');
class_alias('Chamilo\CourseBundle\Component\CourseCopy\Resources\SurveyInvitation', 'SurveyInvitation');
class_alias('Chamilo\CourseBundle\Component\CourseCopy\Resources\SurveyQuestion', 'SurveyQuestion');
class_alias('Chamilo\CourseBundle\Component\CourseCopy\Resources\Thematic', 'Thematic');
class_alias('Chamilo\CourseBundle\Component\CourseCopy\Resources\ToolIntro', 'ToolIntro');
class_alias('Chamilo\CourseBundle\Component\CourseCopy\Resources\Wiki', 'Wiki');
class_alias('Chamilo\CourseBundle\Component\CourseCopy\Resources\Work', 'Work');
$course = unserialize(base64_decode($contents));
@ -232,7 +258,7 @@ class CourseArchiver
) {
return new Course();
}
$course->backup_path = $unzip_dir;
return $course;

@ -15,7 +15,6 @@ use Chamilo\CourseBundle\Component\CourseCopy\Resources\CourseCopyTestcategory;
use Chamilo\CourseBundle\Component\CourseCopy\Resources\CourseDescription;
use Chamilo\CourseBundle\Component\CourseCopy\Resources\CourseSession;
use Chamilo\CourseBundle\Component\CourseCopy\Resources\Document;
use Chamilo\CourseBundle\Component\CourseCopy\Resources\DummyCourseCreator;
use Chamilo\CourseBundle\Component\CourseCopy\Resources\Forum;
use Chamilo\CourseBundle\Component\CourseCopy\Resources\ForumCategory;
use Chamilo\CourseBundle\Component\CourseCopy\Resources\ForumPost;

Loading…
Cancel
Save