]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
small tweak when displaying the river on group profile
authorDave Tosh <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 27 May 2010 11:26:02 +0000 (11:26 +0000)
committerDave Tosh <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 27 May 2010 11:26:02 +0000 (11:26 +0000)
git-svn-id: http://code.elgg.org@6248 36083f99-b078-4883-b0ff-0f9b5a30f544

views/default/river/object/videolist/create.php

index ac849a67b0dfa64c56c37c296bf821f3267cdfaa..9cb170bc28907e725d3d600afc0cb26806d8bc08 100644 (file)
@@ -14,7 +14,8 @@ if(!$title) {
 
 $string = sprintf(elgg_echo("videolist:river:created"),$url) . " ";
 $string .= elgg_echo("videolist:river:item") . " titled <a href=\"" . $object->getURL() . "\">" . $title . "</a>";
-if($is_group){
+//if the video was added to a group, show that unless displayed on the group profile
+if($is_group && get_context() != 'groups'){
        $string .= " " . elgg_echo('videolist:ingroup') . " " . $is_group->name;
 }
 $string .= "<span class='entity_subtext'>" . friendly_time($object->time_created) . "</span>";