mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-09-24 02:39:43 +00:00
Follow-up 804903b4a7
: fix overlooked usage of removed $context var
Change-Id: Id4798364d4d6dc2153034c3a56d16b7cc8d89641
This commit is contained in:
parent
804903b4a7
commit
12ac8eeec6
|
@ -312,7 +312,8 @@ class SimpleCaptcha {
|
|||
$this->trigger = '';
|
||||
|
||||
if ( $oldtext === null ) {
|
||||
$loadOldtextFlags = $context->getRequest()->wasPosted()
|
||||
global $wgRequest;
|
||||
$loadOldtextFlags = $wgRequest->wasPosted()
|
||||
? Revision::READ_LATEST
|
||||
: Revision::READ_NORMAL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue