From: moodler Date: Fri, 29 Feb 2008 06:52:26 +0000 (+0000) Subject: Merged MDL-13727 Added a cpability check when showing blog entries X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b55d5f76914b7c8b9fb9936f29cc296aa5ed5bd6;p=moodle.git Merged MDL-13727 Added a cpability check when showing blog entries --- diff --git a/tag/index.php b/tag/index.php index 7cd4f81ca6..dfdeb6022f 100644 --- a/tag/index.php +++ b/tag/index.php @@ -99,35 +99,38 @@ if ($usercount > 0) { // I was not able to use get_items_tagged_with() because it automatically // tries to join on 'blog' table, since the itemtype is 'blog'. However blogs // uses the post table so this would not really work. - Yu 29/8/07 -if ($blogs = blog_fetch_entries('', 10, 0, 'site', '', $tag->id)) { - - print_box_start('generalbox', 'tag-blogs'); - - print_heading(get_string('relatedblogs', 'tag'), '', 3); - - echo ''; - echo '

'.get_string('seeallblogs', 'tag').'...

'; + echo '

'.get_string('seeallblogs', 'tag').'...

'; - print_box_end(); + print_box_end(); + } }