SemanticMediaWiki / SemanticResultFormats

Provides additional visualizations (result formats) for Semantic MediaWiki
https://www.semantic-mediawiki.org/wiki/Extension:Semantic_Result_Formats
Other
45 stars 75 forks source link

Replace removed core MW function wfFindFile() #778

Closed D-Groenewegen closed 1 month ago

D-Groenewegen commented 1 year ago

Setup

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 :

See https://www.mediawiki.org/wiki/Manual:GlobalFunctions.php#wfFindFile() Use MediaWikiServices::getInstance()->getRepoGroup()->findFile() instead

D-Groenewegen commented 1 month ago

Should be fixed with the commit above.