r68583 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r68582‎ | r68583 | r68584 >
Date:19:51, 25 June 2010
Author:raymond
Status:ok
Tags:
Comment:
Grant ths 'replacetext' user right to the bureaucrats per default.
It's very annoying if you install this extension and get a "Permission error" for User:WikiSysop
Modified paths:
  • /trunk/extensions/ReplaceText/ReplaceText.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ReplaceText/ReplaceText.php
@@ -33,10 +33,13 @@
3434 $wgExtensionMessagesFiles['ReplaceText'] = $rtgIP . 'ReplaceText.i18n.php';
3535 $wgExtensionAliasesFiles['ReplaceText'] = $rtgIP . 'ReplaceText.alias.php';
3636 $wgJobClasses['replaceText'] = 'ReplaceTextJob';
 37+
 38+// This extension uses its own permission type, 'replacetext'
3739 $wgAvailableRights[] = 'replacetext';
 40+$wgGroupPermissions['bureaucrat']['replacetext'] = true;
 41+
3842 $wgHooks['AdminLinks'][] = 'rtAddToAdminLinks';
3943
40 -// This extension uses its own permission type, 'replacetext'
4144 $wgSpecialPages['ReplaceText'] = 'ReplaceText';
4245 $wgSpecialPageGroups['ReplaceText'] = 'wiki';
4346 $wgAutoloadClasses['ReplaceText'] = $rtgIP . 'SpecialReplaceText.php';

Status & tagging log