Index: trunk/extensions/SemanticCompoundQueries/SCQ_QueryProcessor.php |
— | — | @@ -132,8 +132,11 @@ |
133 | 133 | if ($key == 'icon') { |
134 | 134 | $icon_title = Title::newFromText($value); |
135 | 135 | $icon_image_page = new ImagePage($icon_title); |
136 | | - $icon_url = $icon_image_page->getDisplayedFile()->getURL(); |
137 | | - $query_result->display_options['icon'] = $icon_url; |
| 136 | + // method was only added in MW 1.13 |
| 137 | + if (method_exists('ImagePage', 'getDisplayedFile')) { |
| 138 | + $icon_url = $icon_image_page->getDisplayedFile()->getURL(); |
| 139 | + $query_result->display_options['icon'] = $icon_url; |
| 140 | + } |
138 | 141 | } else { |
139 | 142 | $query_result->display_options[$key] = $value; |
140 | 143 | } |