From a0ab76479f31894456b52c6ac489df6108139baf Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Sat, 14 Mar 2020 19:54:06 +0100 Subject: [PATCH] Use MediaWikiServices::getRepoGroup This required MediaWiki 1.34 (already set in skin.json) Change-Id: I5666c637baaf9a93ede4322731e39946d9379766 --- includes/TimelessTemplate.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/TimelessTemplate.php b/includes/TimelessTemplate.php index 25ffc86..e0b7861 100644 --- a/includes/TimelessTemplate.php +++ b/includes/TimelessTemplate.php @@ -4,6 +4,9 @@ * * @ingroup Skins */ + +use MediaWiki\MediaWikiServices; + class TimelessTemplate extends BaseTemplate { /** @var array */ @@ -998,7 +1001,7 @@ class TimelessTemplate extends BaseTemplate { // Generate $logoData from a file upload if ( is_string( $logo ) ) { - $file = wfFindFile( $logo ); + $file = MediaWikiServices::getInstance()->getRepoGroup()->findFile( $logo ); if ( !$file || !$file->canRender() ) { // eeeeeh bail, scary