Use MediaWikiServices::getRepoGroup

This required MediaWiki 1.34 (already set in skin.json)

Change-Id: I5666c637baaf9a93ede4322731e39946d9379766
isekai
Umherirrender 5 years ago
parent 13801dc937
commit a0ab76479f

@ -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

Loading…
Cancel
Save