Index: trunk/extensions/ExpandTemplates/ExpandTemplates.php |
— | — | @@ -4,9 +4,6 @@ |
5 | 5 | <p>This is the ExpandTemplates extension. To enable it, put </p> |
6 | 6 | <pre>require_once("$IP/extensions/ExpandTemplates/ExpandTemplates.php");</pre> |
7 | 7 | <p>at the bottom of your LocalSettings.php.</p> |
8 | | -<p>This extension also requires |
9 | | -<tt><a href="http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/ExtensionFunctions.php"> |
10 | | -ExtensionFunctions.php</a></tt>.</p> |
11 | 8 | <?php |
12 | 9 | exit(1); |
13 | 10 | } |
— | — | @@ -21,11 +18,9 @@ |
22 | 19 | 'descriptionmsg' => 'expandtemplates-desc', |
23 | 20 | ); |
24 | 21 | |
25 | | -$wgExtensionMessagesFiles['ExpandTemplates'] = dirname(__FILE__) . '/ExpandTemplates.i18n.php'; |
26 | | -$wgExtensionAliasesFiles['ExpandTemplates'] = dirname(__FILE__) . '/ExpandTemplates.alias.php'; |
27 | | -$wgSpecialPageGroups['ExpandTemplates'] = 'wiki'; |
28 | | - |
29 | | -if ( !function_exists( 'extAddSpecialPage' ) ) { |
30 | | - require( dirname(__FILE__) . '/../ExtensionFunctions.php' ); |
31 | | -} |
32 | | -extAddSpecialPage( dirname(__FILE__) . '/ExpandTemplates_body.php', 'ExpandTemplates', 'ExpandTemplates' ); |
| 22 | +$dir = dirname(__FILE__) . '/'; |
| 23 | +$wgAutoloadClasses['ExpandTemplates'] = $dir . 'ExpandTemplates_body.php' |
| 24 | +$wgExtensionMessagesFiles['ExpandTemplates'] = $dir . 'ExpandTemplates.i18n.php'; |
| 25 | +$wgExtensionAliasesFiles['ExpandTemplates'] = $dir . 'ExpandTemplates.alias.php'; |
| 26 | +$wgSpecialPages['ExpandTemplates'] = 'ExpandTemplates'; |
| 27 | +$wgSpecialPageGroups['ExpandTemplates'] = 'wiki'; |
\ No newline at end of file |