cvsimport fixups

This commit is contained in:
Jonathan Newman
2009-01-20 23:53:34 +00:00
parent 2a02fa4abe
commit 4d933beb8a
27 changed files with 82 additions and 517 deletions
+3 -3
View File
@@ -12,10 +12,10 @@ $adminediting = optional_param('adminedit', -1, PARAM_BOOL);
/// no guest autologin
require_login(0, false);
$adminroot =& admin_get_root(); // need all settings
$page =& $adminroot->locate($section);
$adminroot = admin_get_root(); // need all settings
$page = $adminroot->locate($section);
if (empty($page) or !is_a($page, 'admin_settingpage')) {
if (empty($page) or !($page instanceof admin_settingpage)) {
print_error('sectionerror', 'admin', "$CFG->wwwroot/$CFG->admin/");
die;
}