search MDL-19822 Upgraded deprecated calls and added set_url calls

This commit is contained in:
samhemelryk 2009-10-15 07:37:29 +00:00
parent beebcf2606
commit c86bdd5d3f
9 changed files with 83 additions and 16 deletions

View file

@ -56,6 +56,15 @@
$advanced = (optional_param('a', '0', PARAM_INT) == '1') ? true : false;
$query_string = stripslashes(optional_param('query_string', '', PARAM_CLEAN));
$url = new moodle_url($CFG->wwwroot.'/search/query.php');
if ($page_number !== -1) {
$url->param('page', $page_number);
}
if ($advanced) {
$url->param('a', '1');
}
$PAGE->set_url($url);
/// discard harmfull searches
if (!isset($CFG->block_search_utf8dir)){