mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Thanks
synced 2024-11-15 02:54:23 +00:00
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:
parent
7ac886821f
commit
470eff1700
|
@ -90,8 +90,4 @@ abstract class ApiThank extends ApiBase {
|
|||
public function isWriteMode() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function getTokenSalt() {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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'];
|
||||
}
|
||||
return Status::newGood();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue