Index: trunk/extensions/MetavidWiki/includes/MV_GlobalFunctions.php |
— | — | @@ -8,7 +8,6 @@ |
9 | 9 | */ |
10 | 10 | define( 'MV_VERSION', '1.0rc2' ); |
11 | 11 | |
12 | | - |
13 | 12 | if ( !defined( 'MEDIAWIKI' ) ) die( 1 ); |
14 | 13 | |
15 | 14 | /** |
— | — | @@ -17,10 +16,6 @@ |
18 | 17 | * if semantic wiki is enabled for this wiki. |
19 | 18 | */ |
20 | 19 | |
21 | | -// pre setup setup |
22 | | -if ( !function_exists( 'extAddSpecialPage' ) ) { |
23 | | - require_once( dirname( __FILE__ ) . '/../ExtensionFunctions.php' ); |
24 | | -} |
25 | 20 | // add language: |
26 | 21 | $wgExtensionMessagesFiles['MetavidWiki'] = $mvgIP . '/languages/MV_Messages.php'; |
27 | 22 | require_once( $mvgIP . '/languages/MV_Language.php' ); |
— | — | @@ -30,10 +25,10 @@ |
31 | 26 | |
32 | 27 | $markerList = array(); |
33 | 28 | |
34 | | -// override special search page: (requires ExtensionFunctions.php) |
35 | | -extAddSpecialPage( dirname( __FILE__ ) . '/specials/MV_SpecialMediaSearch.php', 'Search', 'MV_SpecialSearch' ); |
| 29 | +// override special search page: |
| 30 | +$wgSpecialPages['Search'] = 'MV_SpecialSearch'; |
| 31 | +$wgAutoloadClasses['MV_SpecialSearch'] = dirname( __FILE__ ) . '/specials/MV_SpecialMediaSearch.php'; |
36 | 32 | |
37 | | - |
38 | 33 | function enableMetavid() { |
39 | 34 | global $wgExtensionFunctions, $smwgNamespacesWithSemanticLinks; |
40 | 35 | $wgExtensionFunctions[] = 'mvSetupExtension'; |