diff --git a/extension.json b/extension.json index 8bc763b..a3a31c9 100644 --- a/extension.json +++ b/extension.json @@ -15,6 +15,12 @@ "SemanticMediaWiki": ">= 3.0" } }, + "AutoloadNamespaces": { + "SCI\\": "src" + }, + "AutoloadClasses": { + "SemanticCite": "SemanticCite.php" + }, "MessagesDirs": { "SemanticCite": [ "i18n" diff --git a/src/HookRegistry.php b/src/HookRegistry.php index f045af7..72d5ff1 100644 --- a/src/HookRegistry.php +++ b/src/HookRegistry.php @@ -107,10 +107,10 @@ public function getHandlerFor( $name ) { * @since 1.0 */ public function register() { - - if ( !defined( 'MW_PHPUNIT_TEST' ) ) { - return; - } + // *** not clear why this has been added + //if ( !defined( 'MW_PHPUNIT_TEST' ) ) { + // return; + //} foreach ( $this->handlers as $name => $callback ) { if (