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:
a79fa80
)
check that $wgArticle is an instance of the Article class in Skin::pageStats() per...
author
Jack Phoenix
<ashley@users.mediawiki.org>
Wed, 31 Dec 2008 19:30:59 +0000
(19:30 +0000)
committer
Jack Phoenix
<ashley@users.mediawiki.org>
Wed, 31 Dec 2008 19:30:59 +0000
(19:30 +0000)
includes/Skin.php
patch
|
blob
|
history
diff --git
a/includes/Skin.php
b/includes/Skin.php
index
9435c36
..
e5b39e2
100644
(file)
--- a/
includes/Skin.php
+++ b/
includes/Skin.php
@@
-1261,6
+1261,7
@@
END;
$oldid = $wgRequest->getVal( 'oldid' );
$diff = $wgRequest->getVal( 'diff' );
if ( ! $wgOut->isArticle() ) { return ''; }
+ if( !$wgArticle instanceOf Article ) { return ''; }
if ( isset( $oldid ) || isset( $diff ) ) { return ''; }
if ( 0 == $wgArticle->getID() ) { return ''; }