r95783 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95782‎ | r95783 | r95784 >
Date:14:48, 30 August 2011
Author:krinkle
Status:ok
Tags:
Comment:
[ResourceLoader2]: Make NS_GADGET_DEFINITION case-sensitive in wgCapitalLinkOverrides.
Modified paths:
  • /branches/RL2/extensions/Gadgets/Gadgets.php (modified) (history)

Diff [purge]

Index: branches/RL2/extensions/Gadgets/Gadgets.php
@@ -80,6 +80,11 @@
8181
8282 $wgNamespaceProtection[NS_GADGET][] = 'gadgets-edit';
8383 $wgNamespaceProtection[NS_GADGET_DEFINITION][] = 'gadgets-definition-edit';
 84+
 85+// Page titles in this namespace should match gadget names,
 86+// which historically may start both lowercase or uppercase.
 87+$wgCapitalLinkOverrides[NS_GADGET_DEFINITION] = false;
 88+
8489 $wgAvailableRights = array_merge( $wgAvailableRights, array(
8590 'gadgets-edit',
8691 'gadgets-definition-create',

Status & tagging log