r83078 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83077‎ | r83078 | r83079 >
Date:12:26, 2 March 2011
Author:reedy
Status:deferred
Tags:
Comment:
Swap to SpecialMaintenance

Fix typo in loading code
Modified paths:
  • /trunk/extensions/Maintenance/Maintenance.php (modified) (history)
  • /trunk/extensions/Maintenance/Maintenance_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Maintenance/Maintenance_body.php
@@ -4,7 +4,7 @@
55 die(1);
66 }
77
8 -class MaintenanceSpecialPage extends SpecialPage {
 8+class SpecialMaintenance extends SpecialPage {
99 var $type = '';
1010 static $scripts = array(
1111 'changePassword', 'createAndPromote', 'deleteBatch', 'deleteRevision',
Index: trunk/extensions/Maintenance/Maintenance.php
@@ -29,8 +29,8 @@
3030 $dir = dirname(__FILE__) . '/';
3131 $wgExtensionMessagesFiles['Maintenance'] = $dir . 'Maintenance.i18n.php';
3232 $wgExtensionAliasesFiles['Maintenance'] = $dir . 'Maintenance.alias.php';
33 -$wgAutoloadClasses['SpecialPage'] = $dir . 'Maintenance_body.php';
34 -$wgSpecialPages['Maintenance'] = 'SpecialPage';
 33+$wgAutoloadClasses['SpecialMaintenance'] = $dir . 'Maintenance_body.php';
 34+$wgSpecialPages['Maintenance'] = 'SpecialMaintenance';
3535 // Special page group for MW 1.13+
3636 $wgSpecialPageGroups['Maintenance'] = 'wiki';
3737

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r83077Rename "Maintenance" class to "MaintenanceSpecialPage"...reedy12:19, 2 March 2011

Status & tagging log