merged fix for MDL-7302, tagid lost when turning editting on and off

This commit is contained in:
toyomoyo
2006-10-31 08:50:55 +00:00
parent 8c900bc3b0
commit 47b87873e0
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -13,6 +13,7 @@ class page_blog extends page_base {
var $courseid = NULL;
var $filtertype = NULL;
var $filterselect = NULL;
var $tagid = NULL;
// Mandatory; should return our identifier.
function get_type() {
@@ -102,6 +103,7 @@ class page_blog extends page_base {
}
function url_get_parameters() {
$array = array();
if (!$this->full_init_done) {
$array['userid'] = $this->id;
@@ -117,6 +119,9 @@ class page_blog extends page_base {
if (!empty($this->filterselect)) {
$array['filterselect'] = $this->filterselect;
}
if (!empty($this->tagid)) {
$array['tagid'] = $this->tagid;
}
return $array;
}
+1
View File
@@ -43,6 +43,7 @@ if (empty($USER->id)) {
$PAGE->courseid = $courseid;
$PAGE->filtertype = $filtertype;
$PAGE->filterselect = $filterselect;
$PAGE->tagid = $tagid;
$PAGE->init_full(); //init the BlogInfo object and the courserecord object