From cec7ffcab9d670a173a1cb473eeff1e1a7294158 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Tue, 7 Sep 2010 19:47:08 +0000 Subject: [PATCH] MDL-24127 fixed incorrect $url variable names --- admin/auth.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/admin/auth.php b/admin/auth.php index bed2282177b..8345aadfdee 100644 --- a/admin/auth.php +++ b/admin/auth.php @@ -14,7 +14,7 @@ require_once($CFG->libdir.'/tablelib.php'); require_login(); require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM)); -$returnurl = "$CFG->wwwroot/$CFG->admin/settings.php?section=manageauths"; +$returnurl = new moodle_url('/admin/settings.php', array('section'=>'manageauths')); $PAGE->set_url($returnurl); @@ -29,7 +29,7 @@ if (empty($CFG->auth)) { } if (!empty($auth) and !exists_auth_plugin($auth)) { - print_error('pluginnotinstalled', 'auth', $url, $auth); + print_error('pluginnotinstalled', 'auth', $returnurl, $auth); } //////////////////////////////////////////////////////////////////////////////// @@ -68,7 +68,7 @@ switch ($action) { $key = array_search($auth, $authsenabled); // check auth plugin is valid if ($key === false) { - print_error('pluginnotenabled', 'auth', $url, $auth); + print_error('pluginnotenabled', 'auth', $returnurl, $auth); } // move down the list if ($key < (count($authsenabled) - 1)) { @@ -83,7 +83,7 @@ switch ($action) { $key = array_search($auth, $authsenabled); // check auth is valid if ($key === false) { - print_error('pluginnotenabled', 'auth', $url, $auth); + print_error('pluginnotenabled', 'auth', $returnurl, $auth); } // move up the list if ($key >= 1) { @@ -98,6 +98,6 @@ switch ($action) { break; } -redirect ($returnurl); +redirect($returnurl);