From: Tim Starling Date: Mon, 8 Mar 2004 09:39:01 +0000 (+0000) Subject: use the one central list of talk namespaces, don't make your own every time you need one X-Git-Tag: 1.3.0beta1~835 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=53a9b12371adc4e90dc0c11ff4924aac826eead1;p=lhc%2Fweb%2Fwiklou.git use the one central list of talk namespaces, don't make your own every time you need one --- diff --git a/includes/EditPage.php b/includes/EditPage.php index 1083ae8128..1e224d10b4 100644 --- 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")); }