Index: trunk/extensions/SemanticMaps/includes/queryprinters/SM_MapPrinter.php |
— | — | @@ -443,8 +443,7 @@ |
444 | 444 | } |
445 | 445 | } // Icon can be set even for regular, non-compound queries If it is, though, we have to translate the name into a URL here |
446 | 446 | elseif ( $this->icon != '' ) { |
447 | | - $icon_image_page = new ImagePage( Title::newFromText( $this->icon ) ); |
448 | | - $icon = $icon_image_page->getDisplayedFile()->getURL(); |
| 447 | + $icon = MapsMapper::getImageUrl( $this->icon ); |
449 | 448 | } |
450 | 449 | |
451 | 450 | return $icon; |
Index: trunk/extensions/SemanticMaps/includes/queryprinters/SM_QueryHandler.php |
— | — | @@ -231,8 +231,7 @@ |
232 | 232 | } |
233 | 233 | } // Icon can be set even for regular, non-compound queries If it is, though, we have to translate the name into a URL here |
234 | 234 | elseif ( $this->icon != '' ) { |
235 | | - $icon_image_page = new ImagePage( Title::newFromText( $this->icon ) ); |
236 | | - $icon = $icon_image_page->getDisplayedFile()->getURL(); |
| 235 | + $icon = MapsMapper::getImageUrl( $this->icon ); |
237 | 236 | } |
238 | 237 | |
239 | 238 | return $icon; |
Index: trunk/extensions/SemanticMaps/SemanticMaps.php |
— | — | @@ -38,7 +38,7 @@ |
39 | 39 | |
40 | 40 | // Only initialize the extension when all dependencies are present. |
41 | 41 | if ( defined( 'Maps_VERSION' ) && defined( 'SMW_VERSION' ) ) { |
42 | | - define( 'SM_VERSION', '0.7.3 beta 1' ); |
| 42 | + define( 'SM_VERSION', '0.7.3' ); |
43 | 43 | |
44 | 44 | $useExtensionPath = version_compare( $wgVersion, '1.16', '>=' ) && isset( $wgExtensionAssetsPath ) && $wgExtensionAssetsPath; |
45 | 45 | $smgScriptPath = ( $useExtensionPath ? $wgExtensionAssetsPath : $wgScriptPath . '/extensions' ) . '/SemanticMaps'; |