Index: trunk/extensions/CentralNotice/CentralNotice.php |
— | — | @@ -74,9 +74,6 @@ |
75 | 75 | $wgExtensionMessagesFiles['CentralNotice'] = $dir . 'CentralNotice.i18n.php'; |
76 | 76 | $wgExtensionAliasesFiles['CentralNotice'] = $dir . 'CentralNotice.alias.php'; |
77 | 77 | |
78 | | -$wgAvailableRights[] = 'centralnotice-admin'; |
79 | | -$wgGroupPermissions['sysop']['centralnotice-admin'] = true; // Only sysops can make change |
80 | | - |
81 | 78 | function efCentralNoticeSetup() { |
82 | 79 | global $wgHooks, $wgNoticeInfrastructure, $wgAutoloadClasses, $wgSpecialPages; |
83 | 80 | global $wgCentralNoticeLoader; |
— | — | @@ -105,6 +102,10 @@ |
106 | 103 | $wgAutoloadClasses['TemplatePager'] = $dir . 'TemplatePager.php'; |
107 | 104 | |
108 | 105 | if ( $wgNoticeInfrastructure ) { |
| 106 | + // Register user rights |
| 107 | + $wgAvailableRights[] = 'centralnotice-admin'; |
| 108 | + $wgGroupPermissions['sysop']['centralnotice-admin'] = true; // Only sysops can make change |
| 109 | + |
109 | 110 | $wgSpecialPages['CentralNotice'] = 'CentralNotice'; |
110 | 111 | $wgSpecialPageGroups['CentralNotice'] = 'wiki'; // Wiki data and tools" |
111 | 112 | |