MDL-21432 restore - also disabled in front page

This commit is contained in:
Eloy Lafuente 2010-05-03 09:02:26 +00:00
parent 2e14f78bd7
commit b0f35692ce

View File

@ -2945,6 +2945,7 @@ 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
$frontpage->add(get_string('restore'), $url, self::TYPE_SETTING, null, null, new pix_icon('i/restore', '')); $frontpage->add(get_string('restore'), $url, self::TYPE_SETTING, null, null, new pix_icon('i/restore', ''));
} }