Permalink
Browse files

MDL-30608 Blocks: Fixed block disappering from search page

  • Loading branch information...
1 parent a1d2463 commit 7a44fb4d97b95cc3c0578d26737ba942f327514d Sam Hemelryk committed with Rajesh Taneja Jan 4, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 admin/search.php
View
5 admin/search.php
@@ -8,16 +8,15 @@
$query = trim(optional_param('query', '', PARAM_NOTAGS)); // Search string
$PAGE->set_context(get_context_instance(CONTEXT_SYSTEM));
-$PAGE->set_course($SITE);
+
+admin_externalpage_setup('search', '', array('query' => $query)); // now hidden page
$adminroot = admin_get_root(); // need all settings here
$adminroot->search = $query; // So we can reference it in search boxes later in this invocation
$statusmsg = '';
$errormsg = '';
$focus = '';
-admin_externalpage_setup('search', '', array('query' => $query)); // now hidden page
-
// now we'll deal with the case that the admin has submitted the form with changed settings
if ($data = data_submitted() and confirm_sesskey()) {
if (admin_write_settings($data)) {

0 comments on commit 7a44fb4

Please sign in to comment.