aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/blog/start.php')
-rw-r--r--mod/blog/start.php10
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;
}