fixed undefined $page

This commit is contained in:
Petr Skoda 2010-09-17 11:15:23 +00:00
parent e43485bbc6
commit d86b7d5a66

View File

@ -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;