r45560 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r45559‎ | r45560 | r45561 >
Date:10:13, 8 January 2009
Author:ialex
Status:deferred
Tags:
Comment:
Added replactetext right to $wgAvailableRights and add corresponding message
Modified paths:
  • /trunk/extensions/ReplaceText/ReplaceText.i18n.php (modified) (history)
  • /trunk/extensions/ReplaceText/ReplaceText.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ReplaceText/ReplaceText.i18n.php
@@ -35,6 +35,7 @@
3636 'replacetext_cancel' => '(Click the "Back" button in your browser to cancel the operation.)',
3737 // content messages
3838 'replacetext_editsummary' => 'Text replace - \'$1\' to \'$2\'',
 39+ 'right-replacetext' => 'Do string replacements on the entire wiki',
3940 );
4041
4142 /** Message documentation (Message documentation)
Index: trunk/extensions/ReplaceText/ReplaceText.php
@@ -35,9 +35,10 @@
3636 $wgExtensionMessagesFiles['ReplaceText'] = $dir . 'ReplaceText.i18n.php';
3737 $wgExtensionAliasesFiles['ReplaceText'] = $dir . 'ReplaceText.alias.php';
3838 $wgJobClasses['replaceText'] = 'ReplaceTextJob';
 39+$wgAvailableRights[] = 'replacetext';
3940
4041 // This extension uses its own permission type, 'replacetext'
41 -$wgSpecialPages['ReplaceText'] = array('ReplaceText', 'replacetext');
 42+$wgSpecialPages['ReplaceText'] = 'ReplaceText';
4243 $wgSpecialPageGroups['ReplaceText'] = 'wiki';
4344 $wgAutoloadClasses['ReplaceText'] = $dir . 'SpecialReplaceText.php';
4445 $wgAutoloadClasses['ReplaceTextJob'] = $dir . 'ReplaceTextJob.php';

Status & tagging log