mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Fixed links on blog pages
This commit is contained in:
parent
b0bc8e3008
commit
dd0863ddf4
1 changed files with 6 additions and 1 deletions
|
@ -137,7 +137,12 @@ class block_blog_tags extends block_base {
|
||||||
|
|
||||||
case BLOG_COURSE_LEVEL:
|
case BLOG_COURSE_LEVEL:
|
||||||
$filtertype = 'course';
|
$filtertype = 'course';
|
||||||
|
global $course; // Need to do this unfortunately for pages like blog pages
|
||||||
|
if (isset($course->id)) {
|
||||||
|
$filterselect = $course->id;
|
||||||
|
} else {
|
||||||
$filterselect = $this->instance->pageid;
|
$filterselect = $this->instance->pageid;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue