mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +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:
|
||||
$filtertype = 'course';
|
||||
$filterselect = $this->instance->pageid;
|
||||
global $course; // Need to do this unfortunately for pages like blog pages
|
||||
if (isset($course->id)) {
|
||||
$filterselect = $course->id;
|
||||
} else {
|
||||
$filterselect = $this->instance->pageid;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue