aboutsummaryrefslogtreecommitdiffstats
path: root/includes/specials/SpecialLog.php
diff options
context:
space:
mode:
authorUmherirrender <umherirrender_de.wp@web.de>2023-05-06 22:01:10 +0200
committerDannyS712 <dannys712.wiki@gmail.com>2023-05-11 06:17:38 +0000
commite04d3a28f6c4341b7185a7f121bdfa90372a43df (patch)
tree54f2337f22977dda7e541a94fbdaf437a7894715 /includes/specials/SpecialLog.php
parent9878c4c67a9de08242573f5f5fa149128d80499e (diff)
downloadmediawikicore-e04d3a28f6c4341b7185a7f121bdfa90372a43df.tar.gz
mediawikicore-e04d3a28f6c4341b7185a7f121bdfa90372a43df.zip
Replace internal Hooks::runner
The Hooks class contains deprecated functions and the whole class is going to get removed, so remove the convenience function and inline the code. Bug: T335536 Change-Id: I8ef3468a64a0199996f26ef293543fcacdf2797f
Diffstat (limited to 'includes/specials/SpecialLog.php')
-rw-r--r--includes/specials/SpecialLog.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/specials/SpecialLog.php b/includes/specials/SpecialLog.php
index 36f95e7fc46c..4097f27671fa 100644
--- a/includes/specials/SpecialLog.php
+++ b/includes/specials/SpecialLog.php
@@ -24,7 +24,6 @@
namespace MediaWiki\Specials;
use ChangeTags;
-use Hooks;
use LogEventsList;
use LogPage;
use LogPager;
@@ -34,6 +33,7 @@ use MediaWiki\Html\FormOptions;
use MediaWiki\Html\Html;
use MediaWiki\Html\ListToggle;
use MediaWiki\MainConfigNames;
+use MediaWiki\MediaWikiServices;
use MediaWiki\Title\Title;
use MediaWiki\User\ActorNormalization;
use MediaWiki\User\UserIdentityLookup;
@@ -208,7 +208,8 @@ class SpecialLog extends SpecialPage {
'renameuser',
];
- ( $runner ?? Hooks::runner() )->onGetLogTypesOnUser( $types );
+ ( $runner ?? new HookRunner( MediaWikiServices::getInstance()->getHookContainer() ) )
+ ->onGetLogTypesOnUser( $types );
return $types;
}