Skip to content
This repository has been archived by the owner on Aug 24, 2020. It is now read-only.

Commit

Permalink
Update MW specific loading code
Browse files Browse the repository at this point in the history
Change-Id: Id8e40d8b7eeb16c00ee33fe5ee6059c5de5c9ee3
  • Loading branch information
JeroenDeDauw committed Nov 15, 2013
1 parent 2aeb04c commit a64fa50
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions AskSerialization.mw.php
@@ -1,8 +1,8 @@
<?php

/**
* MediaWiki setup for the Ask extension.
* The extension should be included via the main entry point, Ask.php.
* MediaWiki setup for the Ask Serialization extension.
* The extension should be included via the main entry point, AskSerialization.php.
*
* @since 1.0
*
Expand All @@ -14,12 +14,6 @@
die( 'Not an entry point.' );
}

global $wgExtensionCredits, $wgExtensionMessagesFiles, $wgAutoloadClasses, $wgHooks;

$wgExtensionCredits['other'][] = include( __DIR__ . '/Ask.credits.php' );

$wgExtensionMessagesFiles['AskExtension'] = __DIR__ . '/Ask.i18n.php';

if ( defined( 'MW_PHPUNIT_TEST' ) ) {
require_once __DIR__ . '/Tests/testLoader.php';
}
Expand All @@ -36,7 +30,7 @@
*
* @return boolean
*/
$wgHooks['UnitTestsList'][] = function( array &$files ) {
$GLOBALS['wgHooks']['UnitTestsList'][] = function( array &$files ) {
$directoryIterator = new RecursiveDirectoryIterator( __DIR__ . '/Tests/' );

/**
Expand Down

0 comments on commit a64fa50

Please sign in to comment.