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