mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Fix print_footer call, and some fallout from the pagelib changes.
This commit is contained in:
parent
1fbdf76ddb
commit
30f6bd51a3
1 changed files with 3 additions and 1 deletions
|
@ -8,6 +8,8 @@ require_once($CFG->libdir.'/adminlib.php');
|
||||||
$query = trim(optional_param('query', '', PARAM_NOTAGS)); // Search string
|
$query = trim(optional_param('query', '', PARAM_NOTAGS)); // Search string
|
||||||
|
|
||||||
$PAGE->set_context(get_context_instance(CONTEXT_SYSTEM));
|
$PAGE->set_context(get_context_instance(CONTEXT_SYSTEM));
|
||||||
|
$PAGE->set_course($SITE);
|
||||||
|
|
||||||
$adminroot = admin_get_root(); // need all settings here
|
$adminroot = admin_get_root(); // need all settings here
|
||||||
$adminroot->search = $query; // So we can reference it in search boxes later in this invocation
|
$adminroot->search = $query; // So we can reference it in search boxes later in this invocation
|
||||||
$statusmsg = '';
|
$statusmsg = '';
|
||||||
|
@ -58,6 +60,6 @@ if ($resultshtml != '') {
|
||||||
echo '</fieldset>';
|
echo '</fieldset>';
|
||||||
echo '</form>';
|
echo '</form>';
|
||||||
|
|
||||||
print_footer();
|
admin_externalpage_print_footer();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue