r11109 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r11108‎ | r11109 | r11110 >
Date:00:50, 24 September 2005
Author:avar
Status:old
Tags:
Comment:
* Setting up the renameuser permission, moved out of the main code
Modified paths:
  • /trunk/extensions/Renameuser/SpecialRenameuser.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Renameuser/SpecialRenameuser.php
@@ -11,6 +11,9 @@
1212 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
1313 */
1414
 15+$wgAvailableRights[] = 'renameuser';
 16+$wgGroupPermissions['bureaucrat']['renameuser'] = true;
 17+
1518 $wgExtensionFunctions[] = 'wfSpecialRenameuser';
1619 $wgExtensionCredits['specialpage'][] = array(
1720 'name' => 'Renameuser',
@@ -50,7 +53,7 @@
5154 $wgHooks['LogPageLogName'][] = 'wfSpecialRenameuserAddLogName';
5255 $wgHooks['LogPageLogHeader'][] = 'wfSpecialRenameuserAddLogHeader';
5356
54 - require_once( "$IP/includes/SpecialPage.php" );
 57+ require_once "$IP/includes/SpecialPage.php";
5558 class Renameuser extends SpecialPage {
5659 function Renameuser() {
5760 SpecialPage::SpecialPage('Renameuser', 'renameuser');

Follow-up revisions

RevisionCommit summaryAuthorDate
r111015Remove, don't move...reedy01:25, 9 February 2012

Status & tagging log