mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
course MDL-19794: Fix more initialisation order problems
This commit is contained in:
parent
62d90637c2
commit
680a65a0cc
@ -440,10 +440,5 @@
|
||||
|
||||
print_course_search();
|
||||
|
||||
if ($editingon && update_category_button()) {
|
||||
admin_externalpage_print_footer();
|
||||
} else {
|
||||
print_footer();
|
||||
}
|
||||
print_footer();
|
||||
|
||||
?>
|
||||
|
@ -29,11 +29,23 @@
|
||||
|
||||
$site = get_site();
|
||||
|
||||
$urlparams = array();
|
||||
foreach (array('search', 'page', 'blocklist', 'modulelist') as $param) {
|
||||
if (!empty($$param)) {
|
||||
$urlparams[$param] = $$param;
|
||||
}
|
||||
}
|
||||
if ($perpage != 10) {
|
||||
$urlparams['perpage'] = $perpage;
|
||||
}
|
||||
$PAGE->set_url('course/search.php', $urlparams);
|
||||
$PAGE->set_context(get_context_instance(CONTEXT_SYSTEM));
|
||||
|
||||
if ($CFG->forcelogin) {
|
||||
require_login();
|
||||
}
|
||||
|
||||
if (update_category_button()) {
|
||||
if (can_edit_in_category()) {
|
||||
if ($edit !== -1) {
|
||||
$USER->editing = $edit;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user