From d89f95004db35020fc812d719a10f7e0e5f49a55 Mon Sep 17 00:00:00 2001 From: brettp Date: Mon, 24 May 2010 17:35:06 +0000 Subject: Removing blogs from groups, part 2. git-svn-id: http://code.elgg.org/elgg/trunk@6184 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/blog/start.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/mod/blog/start.php b/mod/blog/start.php index 47e3127bf..0a07b3ced 100644 --- a/mod/blog/start.php +++ b/mod/blog/start.php @@ -198,10 +198,12 @@ function blog_ecml_views_hook($hook, $entity_type, $return_value, $params) { function blog_profile_menu($hook, $entity_type, $return_value, $params) { global $CONFIG; - $return_value[] = array( - 'text' => elgg_echo('blog'), - 'href' => "{$CONFIG->url}pg/blog/{$params['owner']->username}/read", - ); + if (get_context() != 'groups') { + $return_value[] = array( + 'text' => elgg_echo('blog'), + 'href' => "{$CONFIG->url}pg/blog/{$params['owner']->username}/read", + ); + } return $return_value; } -- cgit v1.2.3