global search MDL-24625 added page system context
[moodle.git] / search / query.php
index 660f906..3480cfc 100644 (file)
 
     // print the header
     $site = get_site();
-
+    $PAGE->set_context(get_context_instance(CONTEXT_SYSTEM));
     $PAGE->navbar->add($strsearch, new moodle_url('/search/index.php'));
     $PAGE->navbar->add($strquery, new moodle_url('/search/stats.php'));
     $PAGE->set_title($strsearch);