From 53a9b12371adc4e90dc0c11ff4924aac826eead1 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Mon, 8 Mar 2004 09:39:01 +0000 Subject: [PATCH] use the one central list of talk namespaces, don't make your own every time you need one --- includes/EditPage.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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")); } -- 2.20.1