diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-24 17:35:06 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-24 17:35:06 +0000 |
commit | d89f95004db35020fc812d719a10f7e0e5f49a55 (patch) | |
tree | 43e7a2840a549c1d4b45ed2654c00ed7692b9cf3 /mod/blog | |
parent | 3aba1993c0d0a6f9119bf0e4244f022fee88de8b (diff) | |
download | elgg-d89f95004db35020fc812d719a10f7e0e5f49a55.tar.gz elgg-d89f95004db35020fc812d719a10f7e0e5f49a55.tar.bz2 |
Removing blogs from groups, part 2.
git-svn-id: http://code.elgg.org/elgg/trunk@6184 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/blog')
-rw-r--r-- | mod/blog/start.php | 10 |
1 files 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; } |