Skip to content
Browse files

MDL-27800 admin: make front page restore link consistent

  • Loading branch information...
1 parent a5f6ea2 commit 5eeb7c53d95de351a48c15e732db75ac2c175e8a @mackensen mackensen committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 admin/settings/frontpage.php
View
2 admin/settings/frontpage.php
@@ -77,7 +77,7 @@
$ADMIN->add('frontpage', new admin_externalpage('frontpagebackup', new lang_string('frontpagebackup', 'admin'), $CFG->wwwroot.'/backup/backup.php?id='.SITEID, 'moodle/backup:backupcourse', false, $frontpagecontext));
- $ADMIN->add('frontpage', new admin_externalpage('frontpagerestore', new lang_string('frontpagerestore', 'admin'), $CFG->wwwroot.'/files/index.php?id='.SITEID.'&wdir=/backupdata', 'moodle/restore:restorecourse', false, $frontpagecontext));
+ $ADMIN->add('frontpage', new admin_externalpage('frontpagerestore', new lang_string('frontpagerestore', 'admin'), $CFG->wwwroot.'/backup/restorefile.php?contextid='.$frontpagecontext->id, 'moodle/restore:restorecourse', false, $frontpagecontext));
$questioncapabilities = array(
'moodle/question:add',

0 comments on commit 5eeb7c5

Please sign in to comment.
Something went wrong with that request. Please try again.