summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticResultFormats/formats/slideshow/SRF_SlideShowApi.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/wiki/extensions/SemanticResultFormats/formats/slideshow/SRF_SlideShowApi.php')
-rw-r--r--www/wiki/extensions/SemanticResultFormats/formats/slideshow/SRF_SlideShowApi.php17
1 files changed, 9 insertions, 8 deletions
diff --git a/www/wiki/extensions/SemanticResultFormats/formats/slideshow/SRF_SlideShowApi.php b/www/wiki/extensions/SemanticResultFormats/formats/slideshow/SRF_SlideShowApi.php
index 9cc856fc..b1c2430c 100644
--- a/www/wiki/extensions/SemanticResultFormats/formats/slideshow/SRF_SlideShowApi.php
+++ b/www/wiki/extensions/SemanticResultFormats/formats/slideshow/SRF_SlideShowApi.php
@@ -87,18 +87,19 @@ class SRFSlideShowApi extends ApiBase {
}
// query SMWQueryProcessor and set query result as API call result
+ $query = SMWQueryProcessor::createQuery(
+ '[[' . $title . ']]',
+ $queryParams,
+ SMWQueryProcessor::INLINE_QUERY,
+ '',
+ $printouts
+ );
+
$this->getResult()->addValue(
null,
$requestParams['pageid'],
- SMWQueryProcessor::getResultFromQueryString(
- '[[' . $title . ']]',
- $queryParams,
- $printouts,
- SMW_OUTPUT_HTML,
- SMWQueryProcessor::INLINE_QUERY
- )
+ SMWQueryProcessor::getResultFromQuery( $query, $queryParams, SMW_OUTPUT_HTML, SMWQueryProcessor::INLINE_QUERY )
);
-
}
/**