MDL-21432 restore - also disabled in front page
authorEloy Lafuente <stronk7@moodle.org>
Mon, 3 May 2010 09:02:26 +0000 (09:02 +0000)
committerEloy Lafuente <stronk7@moodle.org>
Mon, 3 May 2010 09:02:26 +0000 (09:02 +0000)
lib/navigationlib.php

index dad343c..d5fbe40 100644 (file)
@@ -2945,6 +2945,7 @@ class settings_navigation extends navigation_node {
         // Restore to this course
         if (has_capability('moodle/restore:restorecourse', $coursecontext)) {
             $url = new moodle_url('/files/index.php', array('id'=>$course->id, 'wdir'=>'/backupdata'));
         // Restore to this course
         if (has_capability('moodle/restore:restorecourse', $coursecontext)) {
             $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', ''));
         }