[mediawiki.action.history.js] Provide cleaner handling of action=historysubmit hack.
authorKrinkle <krinkle@users.mediawiki.org>
Mon, 9 Jan 2012 02:08:35 +0000 (02:08 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Mon, 9 Jan 2012 02:08:35 +0000 (02:08 +0000)
commitc538f96a2d0adc4976d62de577e2395ceea6d0a9
treebedd0a28963d5ba92067b13a1a32f1932bfde469
parent3cd02f7a38ac093a8160db3ac666a1e096a5865c
[mediawiki.action.history.js] Provide cleaner handling of action=historysubmit hack.
* Follows-up r108341, r108370
* Doesn't remove it, server will still handle them properly (as provided by r57415) when JavaScript is off. This commit adds a progressive enhancement when possible so that submit will go to either of these:
* title= & diff= & oldid=
* action=revisiondelete & ids[..]=
instead of one of these
* action=historysubmit & title= & diff= & oldid= & ids[..]=
* action=historysubmit & revisiondelete=1 & ids[..]= diff= & oldid=
(removing redundant parameters and parameters from the other submission-type that don't belong in that url)
* Also re-adding support for action= revisiondelete in the query, as it was originally. Due to this hack it appears that support for the original action name (which is still returned as "revisiondelete" from MediaWiki::getAction() ) was removed or never existed in that place of the code at all. Fixed now.
includes/actions/HistoryAction.php
includes/specials/SpecialRevisiondelete.php
resources/mediawiki.action/mediawiki.action.history.js