r94007 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94006‎ | r94007 | r94008 >
Date:08:23, 6 August 2011
Author:catrope
Status:deferred
Tags:
Comment:
RL2: Fix namespace protection and reorder rights in the Gadgets setup file
Modified paths:
  • /branches/RL2/extensions/Gadgets/Gadgets.php (modified) (history)

Diff [purge]

Index: branches/RL2/extensions/Gadgets/Gadgets.php
@@ -63,16 +63,18 @@
6464 )
6565 );
6666
 67+/*** Setup ***/
 68+
6769 define( 'NS_GADGET', 2300 );
6870 define( 'NS_GADGET_TALK', 2301 );
6971
70 -$wgNamespaceProtection[NS_GADGET][] = array( 'gadgets-edit' );
 72+$wgNamespaceProtection[NS_GADGET][] = 'gadgets-edit';
7173 $wgAvailableRights = array_merge( $wgAvailableRights, array(
7274 'gadgets-edit',
 75+ 'gadgets-manager-view',
7376 'gadgets-manager-create',
74 - 'gadgets-manager-delete',
75 - 'gadgets-manager-view',
76 - 'gadgets-manager-modify'
 77+ 'gadgets-manager-modify',
 78+ 'gadgets-manager-delete'
7779 ) );
7880
7981 $wgHooks['ArticleSaveComplete'][] = 'GadgetHooks::articleSaveComplete';

Status & tagging log