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:
991aee0
)
Use Title::isContentPage() instead of a manual check
author
Rob Church
<robchurch@users.mediawiki.org>
Mon, 8 Jan 2007 16:31:52 +0000
(16:31 +0000)
committer
Rob Church
<robchurch@users.mediawiki.org>
Mon, 8 Jan 2007 16:31:52 +0000
(16:31 +0000)
includes/Article.php
patch
|
blob
|
history
diff --git
a/includes/Article.php
b/includes/Article.php
index
6b4f527
..
f36a674
100644
(file)
--- a/
includes/Article.php
+++ b/
includes/Article.php
@@
-471,12
+471,12
@@
class Article {
* @return bool
*/
function isCountable( $text ) {
- global $wgUseCommaCount
, $wgContentNamespaces
;
+ global $wgUseCommaCount;
$token = $wgUseCommaCount ? ',' : '[[';
return
- array_search( $this->mTitle->getNamespace(), $wgContentNamespaces ) !== false
- && !
$this->isRedirect( $text )
+ $this->mTitle->isContentPage()
+ && !$this->isRedirect( $text )
&& in_string( $token, $text );
}