mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 11:46:19 +01:00
fixed undefined $page
This commit is contained in:
parent
e43485bbc6
commit
d86b7d5a66
@ -79,7 +79,7 @@ class block_blog_recent extends block_base {
|
||||
if ($context->contextlevel == CONTEXT_MODULE) {
|
||||
$filter['module'] = $context->instanceid;
|
||||
$a = new stdClass;
|
||||
$a->type = get_string('modulename', $page->cm->modname);
|
||||
$a->type = get_string('modulename', $this->page->cm->modname);
|
||||
$strview = get_string('viewallmodentries', 'blog', $a);
|
||||
} else if ($context->contextlevel == CONTEXT_COURSE) {
|
||||
$filter['course'] = $context->instanceid;
|
||||
|
Loading…
x
Reference in New Issue
Block a user