dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
87fe024
)
Init $parserCache only as needed
author
Aaron Schulz
<aaron@users.mediawiki.org>
Wed, 10 Dec 2008 15:30:46 +0000
(15:30 +0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Wed, 10 Dec 2008 15:30:46 +0000
(15:30 +0000)
includes/Article.php
patch
|
blob
|
history
diff --git
a/includes/Article.php
b/includes/Article.php
index
bc7cd96
..
07fb659
100644
(file)
--- a/
includes/Article.php
+++ b/
includes/Article.php
@@
-678,9
+678,6
@@
class Article {
wfProfileIn( __METHOD__ );
wfProfileIn( __METHOD__ );
- $parserCache = ParserCache::singleton();
- $ns = $this->mTitle->getNamespace(); # shortcut
-
# Get variables from query string
$oldid = $this->getOldID();
# Get variables from query string
$oldid = $this->getOldID();
@@
-688,6
+685,7
@@
class Article {
if( $oldid === 0 && $this->checkTouched() ) {
global $wgUseETag;
if( $wgUseETag ) {
if( $oldid === 0 && $this->checkTouched() ) {
global $wgUseETag;
if( $wgUseETag ) {
+ $parserCache = ParserCache::singleton();
$wgOut->setETag( $parserCache->getETag($this,$wgUser) );
}
if( $wgOut->checkLastModified( $this->getTouched() ) ){
$wgOut->setETag( $parserCache->getETag($this,$wgUser) );
}
if( $wgOut->checkLastModified( $this->getTouched() ) ){
@@
-702,6
+700,7
@@
class Article {
}
}
}
}
+ $ns = $this->mTitle->getNamespace(); # shortcut
$sk = $wgUser->getSkin();
# getOldID may want us to redirect somewhere else
$sk = $wgUser->getSkin();
# getOldID may want us to redirect somewhere else