Skip to content

Commit

Permalink
Merge pull request #109 from Knowledge-Wiki/master
Browse files Browse the repository at this point in the history
Semantic Cite (KM-A)
  • Loading branch information
JeroenDeDauw authored Nov 11, 2022
2 parents 384fb5b + ddabad0 commit 050e78b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
"SemanticMediaWiki": ">= 3.0"
}
},
"AutoloadNamespaces": {
"SCI\\": "src"
},
"AutoloadClasses": {
"SemanticCite": "SemanticCite.php"
},
"MessagesDirs": {
"SemanticCite": [
"i18n"
Expand Down
8 changes: 4 additions & 4 deletions src/HookRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 050e78b

Please sign in to comment.