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