Index: trunk/extensions/ImportUsers/SpecialImportUsers.php |
— | — | @@ -1,24 +1,19 @@ |
2 | 2 | <?php |
3 | 3 | /** |
4 | 4 | * |
5 | | - * @package MediaWiki |
6 | 5 | * @subpackage Extensions |
7 | 6 | * |
8 | | - * @author RouslanZenetl |
9 | | - * @author YuriyIlkiv |
| 7 | + * @author Rouslan Zenetl |
| 8 | + * @author Yuriy Ilkiv |
10 | 9 | * @license You are free to use this extension for any reason and mutilate it to your heart's liking. |
11 | 10 | */ |
12 | 11 | |
13 | 12 | if (!defined('MEDIAWIKI')) die(); |
14 | 13 | require_once "$IP/includes/SpecialPage.php"; |
15 | 14 | |
16 | | -if ( !function_exists( 'extAddSpecialPage' ) ) { |
17 | | - require( dirname(__FILE__) . '/../ExtensionFunctions.php' ); |
18 | | -} |
19 | | - |
20 | 15 | $wgExtensionCredits['specialpage'][] = array( |
21 | 16 | 'name' => 'Import Users', |
22 | | - 'author' => 'Yuriy Ilkiv, Rouslan Zenetl', |
| 17 | + 'author' => array('Yuriy Ilkiv', 'Rouslan Zenetl'), |
23 | 18 | 'svn-date' => '$LastChangedDate$', |
24 | 19 | 'svn-revision' => '$LastChangedRevision$', |
25 | 20 | 'url' => 'http://www.mediawiki.org/wiki/Extension:ImportUsers', |
— | — | @@ -29,5 +24,6 @@ |
30 | 25 | $wgAvailableRights[] = 'import_users'; |
31 | 26 | $wgGroupPermissions['bureaucrat']['import_users'] = true; |
32 | 27 | $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 |