Index: trunk/extensions/CentralNotice/CentralNotice.php |
— | — | @@ -105,6 +105,11 @@ |
106 | 106 | |
107 | 107 | $wgExtensionMessagesFiles['CentralNotice'] = $dir . 'CentralNotice.i18n.php'; |
108 | 108 | |
| 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 | + |
109 | 114 | function efCentralNoticeSetup() { |
110 | 115 | global $wgHooks, $wgNoticeInfrastructure, $wgAutoloadClasses, $wgSpecialPages; |
111 | 116 | global $wgCentralNoticeLoader; |
— | — | @@ -127,10 +132,6 @@ |
128 | 133 | $wgHooks['ArticleSaveComplete'][] = 'efCentralNoticeSaveHook'; |
129 | 134 | $wgHooks['ArticleSaveComplete'][] = 'efCentralNoticeDeleteHook'; |
130 | 135 | |
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 | | - |
135 | 136 | $wgSpecialPages['CentralNotice'] = 'CentralNotice'; |
136 | 137 | $wgSpecialPages['NoticeTemplate'] = 'SpecialNoticeTemplate'; |
137 | 138 | $wgSpecialPageGroups['CentralNotice'] = 'wiki'; // Wiki data and tools" |