From: samhemelryk Date: Fri, 16 Oct 2009 03:24:19 +0000 (+0000) Subject: tag MDL-19823 Addes set_url calls X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=333abbf151b11d518584282bf82ae51586473d60;p=moodle.git tag MDL-19823 Addes set_url calls --- diff --git a/tag/coursetags_edit.php b/tag/coursetags_edit.php index c06a932f2e..00ad861324 100644 --- a/tag/coursetags_edit.php +++ b/tag/coursetags_edit.php @@ -14,6 +14,18 @@ $courseid = optional_param('courseid', 0, PARAM_INT); $keyword = optional_param('coursetag_new_tag', '', PARAM_TEXT); $deltag = optional_param('del_tag', 0, PARAM_INT); +$url = new moodle_url($CFG->wwwroot.'/tag/coursetags_edit.php'); +if ($courseid !== 0) { + $url->param('courseid', $courseid); +} +if ($keyword !== '') { + $url->param('coursetag_new_tag', $keyword); +} +if ($deltag !== 0) { + $url->param('del_tag', $deltag); +} +$PAGE->set_url($url); + require_login(); if (empty($CFG->usetags)) { diff --git a/tag/coursetags_more.php b/tag/coursetags_more.php index 1eb2728edb..a49eccb217 100644 --- a/tag/coursetags_more.php +++ b/tag/coursetags_more.php @@ -13,6 +13,18 @@ $sort = optional_param('sort', 'alpha', PARAM_TEXT); //alpha, date or popularity $show = optional_param('show', 'all', PARAM_TEXT); //all, my, official, community or course $courseid = optional_param('courseid', 0, PARAM_INT); +$url = new moodle_url($CFG->wwwroot.'/tag/coursetags_more.php'); +if ($sort !== 'alpha') { + $url->param('sort', $sort); +} +if ($show !== 'all') { + $url->param('show', $show); +} +if ($courseid !== 0) { + $url->param('courseid', $courseid); +} +$PAGE->set_url($url); + if (empty($CFG->usetags)) { print_error('tagsaredisabled', 'tag'); } diff --git a/tag/tag_autocomplete.php b/tag/tag_autocomplete.php index 60a648d3ad..f3f24d1cab 100644 --- a/tag/tag_autocomplete.php +++ b/tag/tag_autocomplete.php @@ -1,4 +1,4 @@ -