global search MDL-24625 added page system context
authorAparup Banerjee <nebgor@gmail.com>
Tue, 12 Oct 2010 08:59:44 +0000 (08:59 +0000)
committerAparup Banerjee <nebgor@gmail.com>
Tue, 12 Oct 2010 08:59:44 +0000 (08:59 +0000)
search/query.php

index 660f906..3480cfc 100644 (file)
 
     // print the header
     $site = get_site();
 
     // 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);
     $PAGE->navbar->add($strsearch, new moodle_url('/search/index.php'));
     $PAGE->navbar->add($strquery, new moodle_url('/search/stats.php'));
     $PAGE->set_title($strsearch);