From: Aaron Schulz Date: Tue, 23 Apr 2019 19:43:29 +0000 (-0700) Subject: Keep ERROR_* constants in ApiStashEdit for backwards compatibility X-Git-Tag: 1.34.0-rc.0~1893^2 X-Git-Url: http://git.cyclocoop.org//%22%22.str_replace%28%27%22%27%2C?a=commitdiff_plain;h=56443daf78e524391e5515caae2b294ae224e68e;p=lhc%2Fweb%2Fwiklou.git Keep ERROR_* constants in ApiStashEdit for backwards compatibility Follow-up to 285930668495b Bug: T221689 Change-Id: Ibe275c69d5b47fd36efac4a91b2334970dd02fe8 --- diff --git a/includes/api/ApiStashEdit.php b/includes/api/ApiStashEdit.php index d6d15c75d4..c3cf5f1089 100644 --- a/includes/api/ApiStashEdit.php +++ b/includes/api/ApiStashEdit.php @@ -19,6 +19,7 @@ */ use MediaWiki\MediaWikiServices; +use MediaWiki\Storage\PageEditStash; /** * Prepare an edit in shared cache so that it can be reused on edit @@ -34,6 +35,12 @@ use MediaWiki\MediaWikiServices; * @since 1.25 */ class ApiStashEdit extends ApiBase { + const ERROR_NONE = PageEditStash::ERROR_NONE; // b/c + const ERROR_PARSE = PageEditStash::ERROR_PARSE; // b/c + const ERROR_CACHE = PageEditStash::ERROR_CACHE; // b/c + const ERROR_UNCACHEABLE = PageEditStash::ERROR_UNCACHEABLE; // b/c + const ERROR_BUSY = PageEditStash::ERROR_BUSY; // b/c + public function execute() { $user = $this->getUser(); $params = $this->extractRequestParams();