summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'MLEB/Translate/api/ApiTTMServer.php')
-rw-r--r--MLEB/Translate/api/ApiTTMServer.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/MLEB/Translate/api/ApiTTMServer.php b/MLEB/Translate/api/ApiTTMServer.php
index 1889f745..4fdc5625 100644
--- a/MLEB/Translate/api/ApiTTMServer.php
+++ b/MLEB/Translate/api/ApiTTMServer.php
@@ -36,7 +36,11 @@ class ApiTTMServer extends ApiBase {
$result->addValue( $this->getModuleName(), null, $sug );
}
- $result->setIndexedTagName_internal( $this->getModuleName(), 'suggestion' );
+ if ( defined( 'ApiResult::META_CONTENT' ) ) {
+ $result->addIndexedTagName( $this->getModuleName(), 'suggestion' );
+ } else {
+ $result->setIndexedTagName_internal( $this->getModuleName(), 'suggestion' );
+ }
}
protected function getAvailableTranslationServices() {