Use LocalFile::getHookRunner instead of LocalFile::hookRunner

Do not depend on File::__get()

Follow-Up: Iaa84edfe215e71d3d5fd814053d4b787652fa3b5
Change-Id: Ib344a2fa7681e176de863d99e8df13ec37eb143d
This commit is contained in:
Umherirrender 2021-10-16 23:10:35 +02:00
parent 42d554c930
commit 226264adfa

View file

@ -1473,7 +1473,7 @@ class LocalFile extends File {
}
// Purge any custom thumbnail caches
$this->hookRunner->onLocalFilePurgeThumbnails( $this, $archiveName, $urls );
$this->getHookRunner()->onLocalFilePurgeThumbnails( $this, $archiveName, $urls );
// Purge the CDN
$hcu = MediaWikiServices::getInstance()->getHtmlCacheUpdater();