search MDL-19822 Upgraded print_header and build_navigation calls to OUTPUT/PAGE equivilants

This commit is contained in:
samhemelryk 2009-09-04 07:34:39 +00:00
parent 609adb68d4
commit 766ccfbd25
3 changed files with 19 additions and 13 deletions

View file

@ -157,11 +157,13 @@
$strquery = get_string('enteryoursearchquery', 'search');
// print the header
$navlinks[] = array('name' => $strsearch, 'link' => "index.php", 'type' => 'misc');
$navlinks[] = array('name' => $strquery, 'link' => null, 'type' => 'misc');
$navigation = build_navigation($navlinks);
$site = get_site();
print_header("$strsearch", "$site->fullname" , $navigation, '', '', true, ' ', navmenu($site));
$PAGE->navbar->add($strsearch, new moodle_url($CFG->wwwroot.'/search/index.php'));
$PAGE->navbar->add($strquery, new moodle_url($CFG->wwwroot.'/search/stats.php'));
$PAGE->set_title($strsearch);
$PAGE->set_heading($site->fullname);
echo $OUTPUT->header();
if (!empty($error)){
notice ($error);