r100658 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r100657‎ | r100658 | r100659 >
Date:22:38, 24 October 2011
Author:aaron
Status:ok
Tags:
Comment:
Fix r100657, just use wfGetIP()...sigh
Modified paths:
  • /branches/wmf/1.18wmf1/includes/User.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/includes/User.php
@@ -2920,7 +2920,6 @@
29212921 * @return bool A block was spread
29222922 */
29232923 protected function spreadBlock() {
2924 - global $wgRequest;
29252924 wfDebug( __METHOD__ . "()\n" );
29262925 $this->load();
29272926 if ( $this->mId == 0 ) {
@@ -2932,7 +2931,7 @@
29332932 return false;
29342933 }
29352934
2936 - return (bool)$userblock->doAutoblock( $wgRequest->getIP() );
 2935+ return (bool)$userblock->doAutoblock( wfGetIP() );
29372936 }
29382937
29392938 /**

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r100657Fixed merge mismatches in r100655aaron22:33, 24 October 2011

Status & tagging log