r43023 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r43022‎ | r43023 | r43024 >
Date:20:31, 1 November 2008
Author:brion
Status:old
Tags:
Comment:
need to pull up perms for centralnotice :P
Modified paths:
  • /trunk/extensions/CentralNotice/CentralNotice.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralNotice/CentralNotice.php
@@ -105,6 +105,11 @@
106106
107107 $wgExtensionMessagesFiles['CentralNotice'] = $dir . 'CentralNotice.i18n.php';
108108
 109+$wgAvailableRights[] = 'centralnotice_admin_rights';
 110+$wgGroupPermissions['sysop']['centralnotice_admin_rights'] = true; // Only sysops can make change
 111+$wgGroupPermissions['sysop']['centralnotice_translate_rights'] = true; // Only sysops can make change
 112+
 113+
109114 function efCentralNoticeSetup() {
110115 global $wgHooks, $wgNoticeInfrastructure, $wgAutoloadClasses, $wgSpecialPages;
111116 global $wgCentralNoticeLoader;
@@ -127,10 +132,6 @@
128133 $wgHooks['ArticleSaveComplete'][] = 'efCentralNoticeSaveHook';
129134 $wgHooks['ArticleSaveComplete'][] = 'efCentralNoticeDeleteHook';
130135
131 - $wgAvailableRights[] = 'centralnotice_admin_rights';
132 - $wgGroupPermissions['sysop']['centralnotice_admin_rights'] = true; // Only sysops can make change
133 - $wgGroupPermissions['sysop']['centralnotice_translate_rights'] = true; // Only sysops can make change
134 -
135136 $wgSpecialPages['CentralNotice'] = 'CentralNotice';
136137 $wgSpecialPages['NoticeTemplate'] = 'SpecialNoticeTemplate';
137138 $wgSpecialPageGroups['CentralNotice'] = 'wiki'; // Wiki data and tools"

Status & tagging log