From b55d5f76914b7c8b9fb9936f29cc296aa5ed5bd6 Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 29 Feb 2008 06:52:26 +0000 Subject: [PATCH] Merged MDL-13727 Added a cpability check when showing blog entries --- tag/index.php | 55 +++++++++++++++++++++++++++------------------------ 1 file changed, 29 insertions(+), 26 deletions(-) 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(); + } } -- 2.39.5