r36196 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r36195‎ | r36196 | r36197 >
Date:18:21, 11 June 2008
Author:ashley
Status:old
Tags:
Comment:
ImportUsers:
*remove ExtensionFunctions.php dependency
Modified paths:
  • /trunk/extensions/ImportUsers/SpecialImportUsers.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ImportUsers/SpecialImportUsers.php
@@ -1,24 +1,19 @@
22 <?php
33 /**
44 *
5 - * @package MediaWiki
65 * @subpackage Extensions
76 *
8 - * @author RouslanZenetl
9 - * @author YuriyIlkiv
 7+ * @author Rouslan Zenetl
 8+ * @author Yuriy Ilkiv
109 * @license You are free to use this extension for any reason and mutilate it to your heart's liking.
1110 */
1211
1312 if (!defined('MEDIAWIKI')) die();
1413 require_once "$IP/includes/SpecialPage.php";
1514
16 -if ( !function_exists( 'extAddSpecialPage' ) ) {
17 - require( dirname(__FILE__) . '/../ExtensionFunctions.php' );
18 -}
19 -
2015 $wgExtensionCredits['specialpage'][] = array(
2116 'name' => 'Import Users',
22 - 'author' => 'Yuriy Ilkiv, Rouslan Zenetl',
 17+ 'author' => array('Yuriy Ilkiv', 'Rouslan Zenetl'),
2318 'svn-date' => '$LastChangedDate$',
2419 'svn-revision' => '$LastChangedRevision$',
2520 'url' => 'http://www.mediawiki.org/wiki/Extension:ImportUsers',
@@ -29,5 +24,6 @@
3025 $wgAvailableRights[] = 'import_users';
3126 $wgGroupPermissions['bureaucrat']['import_users'] = true;
3227 $dir = dirname(__FILE__) . '/';
33 -extAddSpecialPage( $dir . 'SpecialImportUsers_body.php', 'ImportUsers', 'SpecialImportUsers' );
34 -$wgExtensionMessagesFiles['ImportUsers'] = $dir . 'SpecialImportUsers.i18n.php';
 28+$wgSpecialPages['ImportUsers'] = 'SpecialImportUsers';
 29+$wgAutoloadClasses['SpecialImportUsers'] = $dir . 'SpecialImportUsers_body.php';
 30+$wgExtensionMessagesFiles['ImportUsers'] = $dir . 'SpecialImportUsers.i18n.php';
\ No newline at end of file

Status & tagging log