MDL-21432 restore & import - disabled until ready

This commit is contained in:
Eloy Lafuente 2010-05-02 14:52:23 +00:00
parent 1b78f98116
commit 530fa9815a

View File

@ -2382,12 +2382,14 @@ class settings_navigation extends navigation_node {
// Restore to this course // Restore to this course
if (has_capability('moodle/restore:restorecourse', $coursecontext)) { if (has_capability('moodle/restore:restorecourse', $coursecontext)) {
$url = new moodle_url('/files/index.php', array('id'=>$course->id, 'wdir'=>'/backupdata')); $url = new moodle_url('/files/index.php', array('id'=>$course->id, 'wdir'=>'/backupdata'));
$url = null; // Disabled until restore is implemented. MDL-21432
$coursenode->add(get_string('restore'), $url, self::TYPE_SETTING, null, null, new pix_icon('i/restore', '')); $coursenode->add(get_string('restore'), $url, self::TYPE_SETTING, null, null, new pix_icon('i/restore', ''));
} }
// Import data from other courses // Import data from other courses
if (has_capability('moodle/restore:restoretargetimport', $coursecontext)) { if (has_capability('moodle/restore:restoretargetimport', $coursecontext)) {
$url = new moodle_url('/course/import.php', array('id'=>$course->id)); $url = new moodle_url('/course/import.php', array('id'=>$course->id));
$url = null; // Disabled until restore is implemented. MDL-21432
$coursenode->add(get_string('import'), $url, self::TYPE_SETTING, null, null, new pix_icon('i/restore', '')); $coursenode->add(get_string('import'), $url, self::TYPE_SETTING, null, null, new pix_icon('i/restore', ''));
} }