mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 10:56:56 +02:00
search MDL-19822 Upgraded deprecated calls and added set_url calls
This commit is contained in:
parent
beebcf2606
commit
c86bdd5d3f
9 changed files with 83 additions and 16 deletions
|
@ -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)){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue