only get the title string if action is not empty
authorGabriel Wicke <gwicke@users.mediawiki.org>
Thu, 22 Apr 2004 22:43:34 +0000 (22:43 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Thu, 22 Apr 2004 22:43:34 +0000 (22:43 +0000)
includes/SkinPHPTal.php

index 4153576..1f29302 100644 (file)
@@ -64,7 +64,7 @@
                        global $wgTitle, $wgArticle, $wgUser, $wgLang, $wgOut;
                        global $wgScript, $wgStyleSheetPath, $wgLanguageCode, $wgUseNewInterlanguage;
                        global $wgMimeType, $wgOutputEncoding, $wgUseDatabaseMessages, $wgRequest;
-                       global $wgDisableCounters, $wgLogo;
+                       global $wgDisableCounters, $wgLogo, $action;
                        
                        extract( $wgRequest->getValues( 'oldid', 'diff' ) );
 
                        #}
 
                        $tpl->setRef( "title", &$this->titletxt ); // ?
-                       $taction =  $this->getPageTitleActionText();
-                       $taction = !empty($taction)?' - '.$taction:'';
+                       if(!empty($action) {
+                               $taction =  $this->getPageTitleActionText();
+                               $taction = !empty($taction)?' - '.$taction:'';
+                       } else { $taction = ''; }
                        $tpl->set( "pagetitle", wfMsg( "pagetitle", $this->titletxt.$taction ) );
                        $tpl->setRef( "thispage", &$this->thispage );
                        $tpl->set( "subtitle", $out->getSubtitle() );