Ori.livneh has uploaded a new change for review. https://gerrit.wikimedia.org/r/201638
Change subject: Follow-up 804903b4a7: fix overlooked usage of removed $context var ...................................................................... Follow-up 804903b4a7: fix overlooked usage of removed $context var Change-Id: Id4798364d4d6dc2153034c3a56d16b7cc8d89641 --- M Captcha.php 1 file changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ConfirmEdit refs/changes/38/201638/1 diff --git a/Captcha.php b/Captcha.php index 8c2d005..ba035c3 100644 --- a/Captcha.php +++ b/Captcha.php @@ -309,7 +309,8 @@ $this->trigger = ''; if ( $oldtext === null ) { - $loadOldtextFlags = $context->getRequest()->wasPosted() + global $wgRequest; + $loadOldtextFlags = $wgRequest->wasPosted() ? Revision::READ_LATEST : Revision::READ_NORMAL; } -- To view, visit https://gerrit.wikimedia.org/r/201638 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Id4798364d4d6dc2153034c3a56d16b7cc8d89641 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/ConfirmEdit Gerrit-Branch: wmf/1.25wmf24 Gerrit-Owner: Ori.livneh <o...@wikimedia.org> Gerrit-Reviewer: Catrope <roan.katt...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits