Move registerHooks to onExtensionRegistration to prevent logspam (#805)

See https://github.com/SemanticMediaWiki/SemanticResultFormats/issues/794
这个提交包含在:
Felipe Schenone 2023-12-22 10:45:04 -03:00 提交者 GitHub
父节点 2082e6cd1d
当前提交 a0b5adec7c
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有 2 个文件被更改,包括 3 次插入3 次删除

查看文件

@ -45,8 +45,6 @@ class SemanticResultFormats {
$GLOBALS['srfgIP'] = __DIR__;
$GLOBALS['wgResourceModules'] = array_merge( $GLOBALS['wgResourceModules'], include __DIR__ . "/Resources.php" );
self::registerHooks();
}
/**
@ -93,6 +91,8 @@ class SemanticResultFormats {
);
}
}
self::registerHooks();
$hookContainer = MediaWikiServices::getInstance()->getHookContainer();
// Admin Links hook needs to be called in a delayed way so that it

查看文件

@ -1,6 +1,6 @@
{
"name": "SemanticResultFormats",
"version": "4.2.0",
"version": "4.2.1",
"author": [
"James Hong Kong",
"Stephan Gambke",