Anomie has uploaded a new change for review.
https://gerrit.wikimedia.org/r/313594
Change subject: Avoid using long-deprecated ApiBase::getResultData()
......................................................................
Avoid using long-deprecated ApiBase::getResultData()
Change-Id: I0664d3af6d04338a05a4f5754f2e194f5252999f
---
M includes/forminputs/SF_TextInput.php
M specials/SF_FormEdit.php
2 files changed, 18 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SemanticForms
refs/changes/94/313594/1
diff --git a/includes/forminputs/SF_TextInput.php
b/includes/forminputs/SF_TextInput.php
index 9320724..2345de0 100644
--- a/includes/forminputs/SF_TextInput.php
+++ b/includes/forminputs/SF_TextInput.php
@@ -110,7 +110,15 @@
), true ), true );
$api->execute();
- $result = $api->getResultData();
+ if ( defined( 'ApiResult::META_CONTENT' ) ) {
+ $result = $api->getResult()->getResultData( null, array(
+ 'BC' => array(),
+ 'Types' => array(),
+ 'Strip' => 'all',
+ ) );
+ } else {
+ $result = $api->getResultData();
+ }
$url = false;
diff --git a/specials/SF_FormEdit.php b/specials/SF_FormEdit.php
index 49498e1..f2ba8591 100644
--- a/specials/SF_FormEdit.php
+++ b/specials/SF_FormEdit.php
@@ -100,7 +100,15 @@
}
} else {
- $resultData = $module->getResultData();
+ if ( defined( 'ApiResult::META_CONTENT' ) ) {
+ $resultData =
$module->getResult()->getResultData( null, array(
+ 'BC' => array(),
+ 'Types' => array(),
+ 'Strip' => 'all',
+ ) );
+ } else {
+ $resultData = $module->getResultData();
+ }
if ( array_key_exists( 'errors', $resultData ) ) {
--
To view, visit https://gerrit.wikimedia.org/r/313594
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I0664d3af6d04338a05a4f5754f2e194f5252999f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticForms
Gerrit-Branch: master
Gerrit-Owner: Anomie <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits