From: Gabriel Wicke Date: Thu, 22 Apr 2004 22:43:34 +0000 (+0000) Subject: only get the title string if action is not empty X-Git-Tag: 1.3.0beta1~322 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=4c64eba661fc87c2afec26d9c69962d64d1f98fb;p=lhc%2Fweb%2Fwiklou.git only get the title string if action is not empty --- 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() );