Nikerabbit has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/257594

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(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation 
refs/changes/94/257594/1

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: newchange
Gerrit-Change-Id: I2e705869285ccd7e6a25db0072789a3423d09078
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to