MDL-20697 removing duplicate error string cannotfindsite, fixing get_site() which is now using exceptions

This commit is contained in:
Petr Skoda
2009-11-01 09:21:41 +00:00
parent 3f77c1584c
commit 2a250a0b2e
26 changed files with 26 additions and 85 deletions
+1 -6
View File
@@ -5181,12 +5181,7 @@ function admin_externalpage_setup($section, $extrabutton = '',
$extraurlparams = array(), $actualurl = '') {
global $CFG, $PAGE, $USER;
if ($site = get_site()) {
require_login();
} else {
redirect($CFG->wwwroot.'/'.$CFG->admin.'/index.php');
die;
}
$site = get_site();
$adminroot = admin_get_root(false, false); // settings not required for external pages
$extpage = $adminroot->locate($section);