r60063 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60062‎ | r60063 | r60064 >
Date:04:20, 15 December 2009
Author:tstarling
Status:ok
Tags:
Comment:
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.
Modified paths:
  • /trunk/phase3/includes/Namespace.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Namespace.php
@@ -50,7 +50,7 @@
5151 * forevermore. Historically, they could've probably been lowercased too,
5252 * but some things are just too ingrained now. :)
5353 */
54 - private static $alwaysCapitalizedNamespaces = array( NS_SPECIAL, NS_MEDIAWIKI );
 54+ private static $alwaysCapitalizedNamespaces = array( NS_SPECIAL, NS_USER, NS_MEDIAWIKI );
5555
5656 /**
5757 * Can pages in the given namespace be moved?

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r57558(bug 13750) $wgCapitalLinks should be a per-namespace settingdemon12:52, 9 October 2009

Status & tagging log