merged fix for MDL-7302, tagid lost when turning editting on and off
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user