Merge branch 'MDL-74026' of https://github.com/paulholden/moodle
This commit is contained in:
@@ -28,18 +28,6 @@ if ($hassiteconfig && moodle_needs_upgrading()) {
|
||||
admin_externalpage_setup('search', '', array('query' => $query)); // now hidden page
|
||||
$PAGE->set_heading(get_string('administrationsite')); // Has to be after setup since it has its' own heading set_heading.
|
||||
|
||||
if ($hassiteconfig) {
|
||||
$data = [
|
||||
'action' => new moodle_url('/admin/search.php'),
|
||||
'btnclass' => 'btn-primary',
|
||||
'inputname' => 'query',
|
||||
'searchstring' => get_string('search'),
|
||||
'query' => $query,
|
||||
'extraclasses' => 'd-flex justify-content-end'
|
||||
];
|
||||
$PAGE->add_header_action($OUTPUT->render_from_template('core/search_input', $data));
|
||||
}
|
||||
|
||||
$adminroot = admin_get_root(); // need all settings here
|
||||
$adminroot->search = $query; // So we can reference it in search boxes later in this invocation
|
||||
$statusmsg = '';
|
||||
|
||||
Reference in New Issue
Block a user