]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
small tweak to header contents
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 26 May 2010 15:06:30 +0000 (15:06 +0000)
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 26 May 2010 15:06:30 +0000 (15:06 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@6229 36083f99-b078-4883-b0ff-0f9b5a30f544

views/default/page_elements/content_header.php

index a6970dc49bc7e82285930b83bcfb64418b6a785d..825d6a1edc4e00fdec191cf81e3953fb9632c61c 100644 (file)
@@ -69,17 +69,17 @@ EOT;
 if (isloggedin()) {
        // only show the new button when not on the add form.
        // hide the tabs when on the add form.
+       // @todo remove the hard coded reference to the videolist plugin
        if ($filter_context == 'action') {
                $tabs = '';
        } else {
-               $new_button = "<a href=\"{$new_link}\" class='action_button'>" . elgg_echo($type . ':new') . '</a>';
                if(get_context() == "videolist"){
                        $video_link = $CONFIG->wwwroot . "pg/videolist/browse/$username/";
-                       $browse_video .= "<a href=\"{$video_link}\" class='action_button'>" . elgg_echo('videolist:browsemenu') . '</a>';
+                       $new_button .= "<a href=\"{$video_link}\" class='action_button'>" . elgg_echo('videolist:browsemenu') . '</a>';
                }else{
-                       $browse_video = '';
+                       $new_button = "<a href=\"{$new_link}\" class='action_button'>" . elgg_echo($type . ':new') . '</a>';
                }
-               $new_button = "<div class='content_header_options'>$new_button $browse_video</div>";
+               $new_button = "<div class='content_header_options'>$new_button</div>";
        }
 
        // also hide the tabs if in a group context (ie, listing groups) or