Confirmation checkbox is gone now; the submit button had been
coopted to replace it in the submission variables, but some
user agents don't go looking for a default button when you
submit by hitting 'enter' in a text entry widget. Just check
that the form was posted; we already have the edit token check
to confirm that it's not a forged request.
{
global $wgUser, $wgOut, $wgRequest;
- $confirm = $wgRequest->getBool( 'wpConfirmB' );
+ $confirm = $wgRequest->wasPosted();
$image = $wgRequest->getVal( 'image' );
$oldimage = $wgRequest->getVal( 'oldimage' );