From: Roan Kattouw Date: Wed, 3 Sep 2008 14:26:41 +0000 (+0000) Subject: (bug 15444) API: Throwing a regular 'unknownerror' rather than ('unknownerror', AS_EN... X-Git-Tag: 1.31.0-rc.0~45508 X-Git-Url: https://git.cyclocoop.org/%27.%24link.%27?a=commitdiff_plain;h=6cba51e73412fbda947fe8ed4d5224e055a4b6a5;p=lhc%2Fweb%2Fwiklou.git (bug 15444) API: Throwing a regular 'unknownerror' rather than ('unknownerror', AS_END) when EditPage::AS_END is returned, for consistency with other write modules. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 9a5f65bc64..1a81d12f1d 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -208,7 +208,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Database replication lag doesn't cause all action=edit requests to return the nochange flag any more * (bug 15392) ApiFormatBase::formatHTML now uses $wgUrlProtocols. - +* (bug 15444) action=edit returned "Unknown error: ``AS_END''" where it should + return just "Unknown error" === Languages updated in 1.14 === diff --git a/includes/api/ApiEditPage.php b/includes/api/ApiEditPage.php index aaa25590b6..d019b245a7 100644 --- a/includes/api/ApiEditPage.php +++ b/includes/api/ApiEditPage.php @@ -205,7 +205,7 @@ class ApiEditPage extends ApiBase { case EditPage::AS_END: # This usually means some kind of race condition # or DB weirdness occurred. Throw an unknown error here. - $this->dieUsageMsg(array('unknownerror', 'AS_END')); + $this->dieUsageMsg(array('unknownerror')); case EditPage::AS_SUCCESS_NEW_ARTICLE: $r['new'] = ''; case EditPage::AS_SUCCESS_UPDATE: