From 4c64eba661fc87c2afec26d9c69962d64d1f98fb Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Thu, 22 Apr 2004 22:43:34 +0000 Subject: [PATCH] only get the title string if action is not empty --- includes/SkinPHPTal.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/includes/SkinPHPTal.php b/includes/SkinPHPTal.php index 415357663b..1f2930276d 100644 --- a/includes/SkinPHPTal.php +++ b/includes/SkinPHPTal.php @@ -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' ) ); @@ -84,8 +84,10 @@ #} $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() ); -- 2.20.1