Remove pre-1.25 API compatibility code

Since this extension uses extension.json, it already requires 1.25+ so
no need to keep the old code around.

Change-Id: Ibcbc065f09f863014389d3a28ca0ae9134c88f78
This commit is contained in:
Brad Jorsch 2016-09-20 15:26:18 -04:00
parent 7ac886821f
commit 470eff1700
2 changed files with 1 additions and 10 deletions

View file

@ -90,8 +90,4 @@ abstract class ApiThank extends ApiBase {
public function isWriteMode() {
return true;
}
public function getTokenSalt() {
return '';
}
}

View file

@ -150,12 +150,7 @@ class SpecialThanks extends FormSpecialPage {
return $this->handleErrorCodes( $e->getCodeString() );
}
if ( defined( 'ApiResult::META_CONTENT' ) ) {
$this->result = $api->getResult()->getResultData( [ 'result' ] );
} else {
$result = $api->getResult()->getData();
$this->result = $result['result'];
}
$this->result = $api->getResult()->getResultData( [ 'result' ] );
return Status::newGood();
}