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:
c96c507
)
use the one central list of talk namespaces, don't make your own every time you need one
author
Tim Starling
<tstarling@users.mediawiki.org>
Mon, 8 Mar 2004 09:39:01 +0000
(09:39 +0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Mon, 8 Mar 2004 09:39:01 +0000
(09:39 +0000)
includes/EditPage.php
patch
|
blob
|
history
diff --git
a/includes/EditPage.php
b/includes/EditPage.php
index
1083ae8
..
1e224d1
100644
(file)
--- a/
includes/EditPage.php
+++ b/
includes/EditPage.php
@@
-116,8
+116,7
@@
class EditPage {
$wgOut->addWikiText(wfmsg("newarticletext"));
}
- $talknamespaces = array( NS_TALK, NS_WP_TALK, NS_IMAGE_TALK, NS_MEDIAWIKI_TALK );
- if( in_array( $this->mTitle->getNamespace(), $talknamespaces ) ) {
+ if( Namespace::isTalk( $this->mTitle->getNamespace() ) ) {
$wgOut->addWikiText(wfmsg("talkpagetext"));
}