Replace removed core MW function wfFindFile()
D-Groenewegen opened this issue · 1 comments
D-Groenewegen commented
Setup
- MW version: 1.39
Issue
An issue was reported to the mailing list by Joseph Padfield, who observed he could no longer use the Dygraphs format with datasource=file
. I was able to confirm the issue and it appears that the result format still relies on wfFindFile(), which was deprecated in MW 1.34 and finally removed in MW 1.39.
Solution
The following files require an update :
- https://github.com/SemanticMediaWiki/SemanticResultFormats/blob/master/formats/dygraphs/SRF_Dygraphs.php
- https://github.com/SemanticMediaWiki/SemanticResultFormats/blob/master/formats/media/MediaPlayer.php#L370
See https://www.mediawiki.org/wiki/Manual:GlobalFunctions.php#wfFindFile()
Use MediaWikiServices::getInstance()->getRepoGroup()->findFile() instead