diff --git a/blocks/blog_recent/block_blog_recent.php b/blocks/blog_recent/block_blog_recent.php index e9dc80ce601..c1b36e461e5 100644 --- a/blocks/blog_recent/block_blog_recent.php +++ b/blocks/blog_recent/block_blog_recent.php @@ -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;