Commit 242606f6 authored by Evan Goldenberg's avatar Evan Goldenberg
Browse files

set menu item text based on whether or not multiple blogs are enabled


Signed-off-by: default avatarEvan Goldenberg <evang@catalyst.net.nz>
parent fd4ee3c2
......@@ -84,6 +84,7 @@ $string['moreoptions'] = 'More options';
$string['mustspecifytitle'] = 'You must specify a title for your post';
$string['mustspecifycontent'] = 'You must specify some content for your post';
$string['myblogs'] = 'My Blogs';
$string['myblog'] = 'My Blog';
$string['name'] = 'Name';
$string['newattachmentsexceedquota'] = 'The total size of the new files that you have uploaded to this post would exceed your quota. You may be able to save the post if you remove some of the attachments you have just added.';
$string['newblog'] = 'New Blog';
......
......@@ -48,11 +48,12 @@ class PluginArtefactBlog extends PluginArtefact {
}
public static function menu_items() {
global $USER;
return array(
array(
'path' => 'myportfolio/blogs',
'url' => 'artefact/blog/',
'title' => get_string('myblogs', 'artefact.blog'),
'title' => $USER->get_account_preference('multipleblogs') ? get_string('myblogs', 'artefact.blog') : get_string('myblog', 'artefact.blog'),
'weight' => 30,
),
);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment