Skip to content

Commit

Permalink
cosmetic fix for CONTEXT:SYSTEM fetching; merged from MOODLE_19_STABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Mar 8, 2008
1 parent 076aeb0 commit fbb51be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backup/backup.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}
} else {
require_login();
if (!has_capability('moodle/site:backup', get_context_instance(CONTEXT_SYSTEM, SITEID))) {
if (!has_capability('moodle/site:backup', get_context_instance(CONTEXT_SYSTEM))) {
error("You need to be an admin user to use this page.", "$CFG->wwwroot/login/index.php");
}
}
Expand Down Expand Up @@ -100,7 +100,7 @@
}

//Print header
if (has_capability('moodle/site:backup', get_context_instance(CONTEXT_SYSTEM, SITEID))) {
if (has_capability('moodle/site:backup', get_context_instance(CONTEXT_SYSTEM))) {
$navlinks[] = array('name' => $stradministration, 'link' => "$CFG->wwwroot/$CFG->admin/index.php", 'type' => 'misc');
$navlinks[] = array('name' => $strcoursebackup, 'link' => 'backup.php', 'type' => 'misc');
$navlinks[] = array('name' => "$course->fullname ($course->shortname)", 'link' => null, 'type' => 'misc');
Expand Down

0 comments on commit fbb51be

Please sign in to comment.