From fccd636955d67d6940dfb7190689d59de46f4976 Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Thu, 15 Apr 2004 21:32:12 +0000 Subject: [PATCH] pagestats is now broken up in a few strings --- includes/SkinPHPTal.php | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) 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() ); -- 2.20.1