jenkins-bot has submitted this change and it was merged.
Change subject: Remove deprecated or unnecessary API code
......................................................................
Remove deprecated or unnecessary API code
Change-Id: I2e705869285ccd7e6a25db0072789a3423d09078
---
M api/ApiContentTranslationDelete.php
M api/ApiContentTranslationPublish.php
2 files changed, 0 insertions(+), 22 deletions(-)
Approvals:
Santhosh: Looks good to me, approved
jenkins-bot: Verified
diff --git a/api/ApiContentTranslationDelete.php
b/api/ApiContentTranslationDelete.php
index 75ffdbe..337f9d5 100644
--- a/api/ApiContentTranslationDelete.php
+++ b/api/ApiContentTranslationDelete.php
@@ -40,9 +40,6 @@
public function getAllowedParams() {
return array(
- 'token' => array(
- ApiBase::PARAM_REQUIRED => true,
- ),
'from' => array(
ApiBase::PARAM_REQUIRED => true,
),
@@ -57,14 +54,6 @@
public function needsToken() {
return 'csrf';
- }
-
- public function getTokenSalt() {
- return '';
- }
-
- public function mustBePosted() {
- return true;
}
public function isWriteMode() {
diff --git a/api/ApiContentTranslationPublish.php
b/api/ApiContentTranslationPublish.php
index cda0071..99414e4 100755
--- a/api/ApiContentTranslationPublish.php
+++ b/api/ApiContentTranslationPublish.php
@@ -381,9 +381,6 @@
'title' => array(
ApiBase::PARAM_REQUIRED => true,
),
- 'token' => array(
- ApiBase::PARAM_REQUIRED => true,
- ),
'html' => array(
ApiBase::PARAM_REQUIRED => true,
),
@@ -415,14 +412,6 @@
public function needsToken() {
return 'csrf';
- }
-
- public function getTokenSalt() {
- return '';
- }
-
- public function mustBePosted() {
- return true;
}
public function isWriteMode() {
--
To view, visit https://gerrit.wikimedia.org/r/257594
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I2e705869285ccd7e6a25db0072789a3423d09078
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit <[email protected]>
Gerrit-Reviewer: Santhosh <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits