r106833 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106832‎ | r106833 | r106834 >
Date:18:48, 20 December 2011
Author:aaron
Status:deferred
Tags:
Comment:
Fixed undefined var
Modified paths:
  • /trunk/extensions/ConfirmAccount/business/AccountRequestSubmission.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ConfirmAccount/business/AccountRequestSubmission.php
@@ -222,6 +222,7 @@
223223 ConfirmAccount::clearAccountRequestCountCache();
224224 # No request spamming...
225225 if ( $wgAccountRequestThrottle && $reqUser->isPingLimitable() ) {
 226+ $ip = $context->getRequest()->getIP();
226227 $key = wfMemcKey( 'acctrequest', 'ip', $ip );
227228 $value = $wgMemc->incr( $key );
228229 if ( !$value ) {

Status & tagging log