Permalink
Browse files

MDL-27800 admin: make front page restore link consistent

Conflicts:

	admin/settings/frontpage.php
  • Loading branch information...
1 parent b66a680 commit bdeeadb3c3792f0f1ffbdbb5a7204f391faf6a17 @mackensen mackensen committed with Sam Hemelryk Jun 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 admin/settings/frontpage.php
@@ -77,7 +77,7 @@
$ADMIN->add('frontpage', new admin_externalpage('frontpagebackup', get_string('frontpagebackup', 'admin'), $CFG->wwwroot.'/backup/backup.php?id='.SITEID, 'moodle/backup:backupcourse', false, $frontpagecontext));
- $ADMIN->add('frontpage', new admin_externalpage('frontpagerestore', get_string('frontpagerestore', 'admin'), $CFG->wwwroot.'/files/index.php?id='.SITEID.'&wdir=/backupdata', 'moodle/restore:restorecourse', false, $frontpagecontext));
+ $ADMIN->add('frontpage', new admin_externalpage('frontpagerestore', get_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 bdeeadb

Please sign in to comment.