File tree Expand file tree Collapse file tree
formats/filtered/src/View Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55use DataValues \Geo \Parsers \LatLongParser ;
66use Exception ;
7+ use MediaWiki \MediaWikiServices ;
78use SMW \DataValues \PropertyValue ;
89use SRF \Filtered \ResultItem ;
910
@@ -294,7 +295,6 @@ private function getMarkerIcons() {
294295 $ actualParameters = self ::getActualParameters ()['map view marker icons ' ];
295296
296297 foreach ( $ actualParameters as $ relation ) {
297-
298298 $ relation = explode ( '= ' , $ relation , 2 );
299299
300300 if ( count ( $ relation ) === 1 ) {
@@ -305,7 +305,9 @@ private function getMarkerIcons() {
305305 $ icon = $ relation [1 ];
306306 }
307307
308- $ file = \WikiPage::factory ( \Title::newFromText ( $ icon , NS_FILE ) )->getFile ();
308+ $ file = MediaWikiServices::getInstance ()->getWikiPageFactory ()->newFromTitle (
309+ \Title::newFromText ( $ icon , NS_FILE )
310+ )->getFile ();
309311
310312 if ( $ file ->exists () ) {
311313 $ ret [$ key ] = $ file ->getUrl ();
You can’t perform that action at this time.
0 commit comments