Index: branches/RL2/extensions/Gadgets/Gadgets.php |
— | — | @@ -63,16 +63,18 @@ |
64 | 64 | ) |
65 | 65 | ); |
66 | 66 | |
| 67 | +/*** Setup ***/ |
| 68 | + |
67 | 69 | define( 'NS_GADGET', 2300 ); |
68 | 70 | define( 'NS_GADGET_TALK', 2301 ); |
69 | 71 | |
70 | | -$wgNamespaceProtection[NS_GADGET][] = array( 'gadgets-edit' ); |
| 72 | +$wgNamespaceProtection[NS_GADGET][] = 'gadgets-edit'; |
71 | 73 | $wgAvailableRights = array_merge( $wgAvailableRights, array( |
72 | 74 | 'gadgets-edit', |
| 75 | + 'gadgets-manager-view', |
73 | 76 | 'gadgets-manager-create', |
74 | | - 'gadgets-manager-delete', |
75 | | - 'gadgets-manager-view', |
76 | | - 'gadgets-manager-modify' |
| 77 | + 'gadgets-manager-modify', |
| 78 | + 'gadgets-manager-delete' |
77 | 79 | ) ); |
78 | 80 | |
79 | 81 | $wgHooks['ArticleSaveComplete'][] = 'GadgetHooks::articleSaveComplete'; |