diff options
| author | nickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-26 15:11:20 +0000 | 
|---|---|---|
| committer | nickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-26 15:11:20 +0000 | 
| commit | 33dc3921aa7adb28d0812a22ff9ff86c124af6f2 (patch) | |
| tree | 591b9df06505fa509102d543312213e95148a583 /mod/groups | |
| parent | d079f3ce5d6df2d3ca4b5900457a68858ecde629 (diff) | |
| download | elgg-33dc3921aa7adb28d0812a22ff9ff86c124af6f2.tar.gz elgg-33dc3921aa7adb28d0812a22ff9ff86c124af6f2.tar.bz2 | |
Ensuring Blogs and Forum links display properly in the group ownerblock.
git-svn-id: http://code.elgg.org/elgg/trunk@6230 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups')
| -rw-r--r-- | mod/groups/start.php | 6 | 
1 files changed, 2 insertions, 4 deletions
| diff --git a/mod/groups/start.php b/mod/groups/start.php index d158b47d0..fdf3b9e45 100644 --- a/mod/groups/start.php +++ b/mod/groups/start.php @@ -593,12 +593,10 @@  	function forum_profile_menu($hook, $entity_type, $return_value, $params) {  		global $CONFIG; -		$group_owner = page_owner_entity(); -		 -		if ($group_owner instanceof ElggGroup && get_context() == 'groups' && $group_owner->forum_enable != "no") { +		if ($params['owner'] instanceof ElggGroup && $group_owner->forum_enable != 'no') {  			$return_value[] = array(  				'text' => elgg_echo('groups:forum'), -				'href' => "{$CONFIG->url}pg/groups/forum/{$group_owner->getGUID()}" +				'href' => "{$CONFIG->url}pg/groups/forum/{$params['owner']->getGUID()}"  			);  		}  		return $return_value; | 
