From ec21eaba2e56122904519a4825c55d0053ab6e60 Mon Sep 17 00:00:00 2001 From: Jason Fowler Date: Fri, 9 Mar 2012 15:08:25 +0800 Subject: [PATCH] MDL-27064 - Blog - Changing the link text for different levels of blog entries --- lang/en/blog.php | 2 ++ lib/navigationlib.php | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lang/en/blog.php b/lang/en/blog.php index 1d54561d87e..202ad8770c0 100644 --- a/lang/en/blog.php +++ b/lang/en/blog.php @@ -54,6 +54,8 @@ $string['blogentriesbyuseraboutmodule'] = 'Blog entries about this {$a->mod} by $string['blogentrybyuser'] = 'Blog entry by {$a}'; $string['blogpreferences'] = 'Blog preferences'; $string['blogs'] = 'Blogs'; +$string['blogscourse'] = 'Course blogs'; +$string['blogssite'] = 'Site blogs'; $string['blogtags'] = 'Blog tags'; $string['cannotviewcourseblog'] = 'You do not have the required permissions to view blogs in this course'; $string['cannotviewcourseorgroupblog'] = 'You do not have the required permissions to view blogs in this course/group'; diff --git a/lib/navigationlib.php b/lib/navigationlib.php index 19ef2f5951a..62de2f29079 100644 --- a/lib/navigationlib.php +++ b/lib/navigationlib.php @@ -2278,7 +2278,7 @@ class global_navigation extends navigation_node { if (($CFG->bloglevel == BLOG_GLOBAL_LEVEL or ($CFG->bloglevel == BLOG_SITE_LEVEL and (isloggedin() and !isguestuser()))) and has_capability('moodle/blog:view', get_context_instance(CONTEXT_SYSTEM))) { $blogsurls = new moodle_url('/blog/index.php', array('courseid' => $filterselect)); - $participants->add(get_string('blogs','blog'), $blogsurls->out()); + $participants->add(get_string('blogscourse','blog'), $blogsurls->out()); } if (!empty($CFG->enablenotes) && (has_capability('moodle/notes:manage', $this->page->context) || has_capability('moodle/notes:view', $this->page->context))) { $participants->add(get_string('notes','notes'), new moodle_url('/notes/index.php', array('filtertype'=>'course', 'filterselect'=>$course->id))); @@ -2343,7 +2343,7 @@ class global_navigation extends navigation_node { and ($CFG->bloglevel == BLOG_GLOBAL_LEVEL or ($CFG->bloglevel == BLOG_SITE_LEVEL and (isloggedin() and !isguestuser()))) and has_capability('moodle/blog:view', get_context_instance(CONTEXT_SYSTEM))) { $blogsurls = new moodle_url('/blog/index.php', array('courseid' => $filterselect)); - $coursenode->add(get_string('blogs','blog'), $blogsurls->out()); + $coursenode->add(get_string('blogssite','blog'), $blogsurls->out()); } // Notes