From 47b87873e07970a9ad6eb76eee85f2d6b9e9ad01 Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Tue, 31 Oct 2006 08:50:55 +0000 Subject: [PATCH] merged fix for MDL-7302, tagid lost when turning editting on and off --- blog/blogpage.php | 5 +++++ blog/header.php | 1 + 2 files changed, 6 insertions(+) diff --git a/blog/blogpage.php b/blog/blogpage.php index 6d47048b46..e2d652ca84 100644 --- a/blog/blogpage.php +++ b/blog/blogpage.php @@ -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; } diff --git a/blog/header.php b/blog/header.php index a9efda524a..4f4c92fa9a 100755 --- a/blog/header.php +++ b/blog/header.php @@ -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 -- 2.39.5