From d86b7d5a66ea2e59b1bc4ad35ca21b5f3cb6aa87 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Fri, 17 Sep 2010 11:15:23 +0000 Subject: [PATCH] fixed undefined $page --- blocks/blog_recent/block_blog_recent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;