Permalink
Browse files

Merge branch 'wip-mdl-30798-m23' of git://github.com/rajeshtaneja/moo…

…dle into MOODLE_23_STABLE
  • Loading branch information...
2 parents 24527f6 + 021bea1 commit e0bc694514e856b322031c61e3eace9ce67cedc4 @danpoltawski danpoltawski committed Jul 16, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 blocks/blog_recent/block_blog_recent.php
@@ -86,25 +86,27 @@ function get_content() {
$context = $this->page->context;
+ $url = new moodle_url('/blog/index.php');
$filter = array();
if ($context->contextlevel == CONTEXT_MODULE) {
$filter['module'] = $context->instanceid;
$a = new stdClass;
$a->type = get_string('modulename', $this->page->cm->modname);
$strview = get_string('viewallmodentries', 'blog', $a);
+ $url->param('modid', $context->instanceid);
} else if ($context->contextlevel == CONTEXT_COURSE) {
$filter['course'] = $context->instanceid;
$a = new stdClass;
$a->type = get_string('course');
$strview = get_string('viewblogentries', 'blog', $a);
+ $url->param('courseid', $context->instanceid);
} else {
$strview = get_string('viewsiteentries', 'blog');
}
$filter['since'] = $this->config->recentbloginterval;
$bloglisting = new blog_listing($filter);
$entries = $bloglisting->get_entries(0, $this->config->numberofrecentblogentries, 4);
- $url = new moodle_url('/blog/index.php', $filter);
if (!empty($entries)) {
$entrieslist = array();

0 comments on commit e0bc694

Please sign in to comment.