Skip to content

Commit

Permalink
Move registerHooks to onExtensionRegistration to prevent logspam (#805)
Browse files Browse the repository at this point in the history
See #794
  • Loading branch information
Sophivorus authored Dec 22, 2023
1 parent 2082e6c commit a0b5ade
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions SemanticResultFormats.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ public static function initExtension( $credits = [] ) {

$GLOBALS['srfgIP'] = __DIR__;
$GLOBALS['wgResourceModules'] = array_merge( $GLOBALS['wgResourceModules'], include __DIR__ . "/Resources.php" );

self::registerHooks();
}

/**
Expand Down Expand Up @@ -93,6 +91,8 @@ public static function onExtensionFunction() {
);
}
}
self::registerHooks();

$hookContainer = MediaWikiServices::getInstance()->getHookContainer();

// Admin Links hook needs to be called in a delayed way so that it
Expand Down
2 changes: 1 addition & 1 deletion extension.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "SemanticResultFormats",
"version": "4.2.0",
"version": "4.2.1",
"author": [
"James Hong Kong",
"Stephan Gambke",
Expand Down

0 comments on commit a0b5ade

Please sign in to comment.