(bug 27018) Added action=filerevert to revert files to an old version. Copied procedu...
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Sat, 5 Mar 2011 17:23:35 +0000 (17:23 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Sat, 5 Mar 2011 17:23:35 +0000 (17:23 +0000)
commitf9a36ee7bfd0834b2cd02779410c1abd24a3f556
tree1c958e8fc386bb64235807fa39b5adb8b824f917
parentd3732d3ad685b30eff7b5ee2a6e2048d53038087
(bug 27018) Added action=filerevert to revert files to an old version. Copied procedure from FileRevertForm, as most of the verification procedure is simple enough to not warrant the effort of writing a dedicated backend.

Further changes:
* Added Status::getErrorsByType() which returns the internal error array untouched
* Added ApiResult::convertStatusToArray() which converts a Status object to something useful for the Api
RELEASE-NOTES
includes/AutoLoader.php
includes/Status.php
includes/api/ApiFileRevert.php [new file with mode: 0644]
includes/api/ApiMain.php
includes/api/ApiResult.php