From aaae8e9937d254f73a9db058304e925282a058d5 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sat, 26 Mar 2005 09:12:41 +0000 Subject: [PATCH] NS_xxx instead of hardcoded integer --- includes/DefaultSettings.php | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 4b65d014d9..dd20e8a9f5 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -780,10 +780,27 @@ $wgPasswordSalt = true; /** Which namespaces should support subpages? * See Language.php for a list of namespaces. */ -$wgNamespacesWithSubpages = array( -1 => 0, 0 => 0, 1 => 1, - 2 => 1, 3 => 1, 4 => 0, 5 => 1, 6 => 0, 7 => 1, 8 => 0, 9 => 1, 10 => 0, 11 => 1); - -$wgNamespacesToBeSearchedDefault = array( -1 => 0, 0 => 1, 1 => 0, +$wgNamespacesWithSubpages = array( + NS_SPECIAL => 0, + NS_MAIN => 0, + NS_TALK => 1, + NS_USER => 1, + NS_USER_TALK => 1, + NS_PROJECT => 0, + NS_PROJECT_TALK => 1, + NS_IMAGE => 0, + NS_IMAGE_TALK => 1, + NS_MEDIAWIKI => 0, + NS_MEDIAWIKI_TALK => 1, + NS_TEMPLATE => 0, + NS_TEMPLATE_TALK => 1, + NS_HELP => 0, + NS_HELP_TALK => 1, + NS_CATEGORY => 0, + NS_CATEGORY_TALK => 1 + ); + +$wgNamespacesToBeSearchedDefault = array( NS_SPECIAL => 0, 0 => 1, 1 => 0, 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0, 8 => 0, 9 => 1, 10 => 0, 11 => 1 ); /** If set, a bold ugly notice will show up at the top of every page. */ -- 2.20.1