On Thu, May 22, 2008 at 9:11 PM, simetrical@svn.wikimedia.org wrote:
if ( 'success' == $action ) {
$f->showSuccess();
} else if ( 'submit' == $action && $wgRequest->wasPosted()
if ( 'submit' == $action && $wgRequest->wasPosted()
I meant to remark on this but forgot. This *does* give the annoying "request was POSTed" dialog if you refresh, hit back, etc. (and if you say to re-POST then it will try to re-move the pages!). The old way of doing it was untenable for this due to the sheer length of the URL if nothing else; plus I find this to be exceptionally creepy:
http://en.wikipedia.org/w/index.php?title=Special:MovePage&action=succes...
Visiting the URL does absolutely nothing, but I'd be pretty terrified if I ended up there by mistake. :) It's very misleading.
Is there any way to do this that works better? The result page needs to be dependent on the initial POST, but the re-POST dialog is kind of unpleasant. Especially if someone clicks confirm on it, they're an admin, and they originally specified to delete the target page -- although I haven't tested that, it sounds like it might be scary (unless only redirects are ever deleted on move, in which case the scenario is fairly unlikely). The only thing I can think of is using the database somehow, which seems like a bad idea.