mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-21432 restore - also disabled in front page
This commit is contained in:
parent
2e14f78bd7
commit
b0f35692ce
@ -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', ''));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user