From: Gabriel Wicke Date: Thu, 15 Apr 2004 21:32:12 +0000 (+0000) Subject: pagestats is now broken up in a few strings X-Git-Tag: 1.3.0beta1~417 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=fccd636955d67d6940dfb7190689d59de46f4976;p=lhc%2Fweb%2Fwiklou.git pagestats is now broken up in a few strings --- diff --git a/includes/SkinPHPTal.php b/includes/SkinPHPTal.php index 183bff99b4..6c93605ba8 100644 --- a/includes/SkinPHPTal.php +++ b/includes/SkinPHPTal.php @@ -64,6 +64,9 @@ global $wgTitle, $wgArticle, $wgUser, $wgLang, $wgOut; global $wgScriptPath, $wgStyleSheetPath, $wgLanguageCode, $wgUseNewInterlanguage; global $wgMimeType, $wgOutputEncoding, $wgUseDatabaseMessages, $wgRequest; + global $wgDisableCounters; + + extract( $wgRequest->getValues( 'oldid', 'diff' ) ); $this->thispage = $wgTitle->getPrefixedDbKey(); $this->loggedin = $wgUser->getID() != 0; @@ -120,9 +123,18 @@ $tpl->setRef( "newtalk", &$ntl ); $tpl->setRef( "skin", &$this); $tpl->set( "logo", $this->logoText() ); - $tpl->set( "pagestats", $this->pageStats() ); - $tpl->set( "copyright", $this->getCopyrightIcon() ); - $tpl->set( "poweredby", $this->getPoweredBy() ); + if ( $wgOut->isArticle() and (!isset( $oldid ) or isset( $diff )) and 0 != $wgArticle->getID() ) { + if ( !$wgDisableCounters ) { + $viewcount = $wgLang->formatNum( $wgArticle->getCount() ); + if ( $viewcount ) { + $tpl->set('viewcount', wfMsg( "viewcount", $viewcount )); + } + } + $tpl->set('lastmod', $this->lastModified()); + $tpl->set('copyright',$this->getCopyright()); + } + $tpl->set( "copyrightico", $this->getCopyrightIcon() ); + $tpl->set( "poweredbyico", $this->getPoweredBy() ); $tpl->set( "disclaimer", $this->disclaimerLink() ); $tpl->set( "about", $this->aboutLink() );