Skip to content
Browse files

MDL-32564 fix admin/timezone.php page setup

  • Loading branch information...
1 parent 2ddb941 commit f7d185baf3c42a8c271913fa01a3e1e9139a3de7 @skodak skodak committed May 13, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 admin/timezone.php
View
4 admin/timezone.php
@@ -9,6 +9,9 @@
$zone = clean_param($zone, PARAM_PATH);
}
+ $PAGE->set_url('/admin/timezone.php');
+ $PAGE->set_context(get_context_instance(CONTEXT_SYSTEM));
+
require_login();
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
@@ -18,7 +21,6 @@
$strusers = get_string("users");
$strall = get_string("all");
- $PAGE->set_url('/admin/timezone.php');
$PAGE->set_title($strtimezone);
$PAGE->set_heading($strtimezone);
$PAGE->navbar->add($strtimezone);

0 comments on commit f7d185b

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