Re r41198: if you're going to break the interface, you may as well do it properly...
authorTim Starling <tstarling@users.mediawiki.org>
Thu, 25 Sep 2008 10:15:19 +0000 (10:15 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Thu, 25 Sep 2008 10:15:19 +0000 (10:15 +0000)
commit95e847e5b5028314cd8aaa5e500e239272b600df
treec4944a1cf138d12242e792902a1a2e23b7fc53a3
parent687c5947146b1cd8d2e2520bc792cc037a743cde
Re r41198: if you're going to break the interface, you may as well do it properly. Rather than Article::doEdit() returning some random fragment of data that your current application requires, how about we have it return a general, extensible object?

Also:
* Fixed EDIT_NEW on existing article to return an error status instead of throw a DB exception
* Fixed a bug dating from MW 1.5 whereby there's a short interval where an edit conflict can be missed, and an edit overwritten. See comment before updateRevisionOn() call.
* Reduced some indenting levels using early returns
includes/Article.php
languages/messages/MessagesEn.php
maintenance/edit.php