r94701 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94700‎ | r94701 | r94702 >
Date:22:31, 16 August 2011
Author:yaron
Status:ok
Tags:
Comment:
Removed backwards compatibility for MW 1.13 - this extension already requires MW 1.14+ anyway
Modified paths:
  • /trunk/extensions/SemanticCompoundQueries/SCQ_QueryProcessor.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticCompoundQueries/SCQ_QueryProcessor.php
@@ -183,12 +183,7 @@
184184
185185 if ( !is_null( $title ) && $title->getNamespace() == NS_FILE && $title->exists() ) {
186186 $icon_image_page = new ImagePage( $title );
187 -
188 - // Method was only added in MW 1.13
189 - $realFunction = array( $icon_image_page, 'getDisplayedFile' );
190 - if ( is_callable( $realFunction ) ) {
191 - $display_options['icon'] = $icon_image_page->getDisplayedFile()->getURL();
192 - }
 187+ $display_options['icon'] = $icon_image_page->getDisplayedFile()->getURL();
193188 }
194189 } else {
195190 $display_options[$key] = $value;

Status & tagging log