From 6e6023740c420a3a7dbcccaa5263ead86ea39fd6 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Tue, 15 Dec 2009 04:20:17 +0000 Subject: [PATCH] Add NS_USER to MWNamespace::$alwaysCapitalizedNamespaces, as suggested by Happy-melon on CR r57558. Untested, but should be beneficial, allowing easier linking to users on wikis with $wgCapitalLinks=false. But redirects from invalid names to valid names, e.g. [[User:tim]] -> [[User:Tim]] will become inaccessible. r57558 itself suffers similar problems, inaccessible pages should really be cleaned up with a maintenance script. --- includes/Namespace.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Namespace.php b/includes/Namespace.php index 4efc7a8fb3..e824b8d361 100644 --- a/includes/Namespace.php +++ b/includes/Namespace.php @@ -50,7 +50,7 @@ class MWNamespace { * forevermore. Historically, they could've probably been lowercased too, * but some things are just too ingrained now. :) */ - private static $alwaysCapitalizedNamespaces = array( NS_SPECIAL, NS_MEDIAWIKI ); + private static $alwaysCapitalizedNamespaces = array( NS_SPECIAL, NS_USER, NS_MEDIAWIKI ); /** * Can pages in the given namespace be moved? -- 2.20.1