From fbb51be65a8597ecf924a8058c46734731e6e2a7 Mon Sep 17 00:00:00 2001 From: skodak Date: Sat, 8 Mar 2008 15:36:52 +0000 Subject: [PATCH] cosmetic fix for CONTEXT:SYSTEM fetching; merged from MOODLE_19_STABLE --- backup/backup.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup/backup.php b/backup/backup.php index 9e3c5f11d3..3e45cc4cfd 100644 --- a/backup/backup.php +++ b/backup/backup.php @@ -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"); } } @@ -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'); -- 2.39.5