Follow-up 804903b4a7: fix overlooked usage of removed $context var

Change-Id: Id4798364d4d6dc2153034c3a56d16b7cc8d89641
This commit is contained in:
Roan Kattouw 2015-04-02 18:22:40 -07:00
parent 804903b4a7
commit 12ac8eeec6

View file

@ -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;
}