mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
course-import MDL-23752 Implemented course import functionality back into Moodle 2.0
The course import now makes use of the backup and restore processed and the backup UI to allow the user to import one course into another. The new UI is much the same as the backup ui except preceeded by a course selector to choose the course to import from.
This commit is contained in:
parent
6c2f430931
commit
ad93ddd5f7
8 changed files with 596 additions and 12 deletions
|
@ -17,8 +17,6 @@ $PAGE->set_pagelayout('standard');
|
|||
require_login($course, null, $cm);
|
||||
require_capability('moodle/restore:restorecourse', $context);
|
||||
|
||||
$isfrontpage = ($course->id == SITEID);
|
||||
|
||||
if ($stage & restore_ui::STAGE_CONFIRM + restore_ui::STAGE_DESTINATION) {
|
||||
$restore = restore_ui::engage_independent_stage($stage, $contextid);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue