r58709 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r58708‎ | r58709 | r58710 >
Date:14:23, 7 November 2009
Author:ialex
Status:ok
Tags:
Comment:
$fname -> __METHOD__
Modified paths:
  • /trunk/phase3/includes/ProxyTools.php (modified) (history)
  • /trunk/phase3/includes/SiteStats.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/ProxyTools.php
@@ -195,12 +195,11 @@
196196 */
197197 function wfIsLocallyBlockedProxy( $ip ) {
198198 global $wgProxyList;
199 - $fname = 'wfIsLocallyBlockedProxy';
200199
201200 if ( !$wgProxyList ) {
202201 return false;
203202 }
204 - wfProfileIn( $fname );
 203+ wfProfileIn( __METHOD__ );
205204
206205 if ( !is_array( $wgProxyList ) ) {
207206 # Load from the specified file
@@ -217,7 +216,7 @@
218217 } else {
219218 $ret = false;
220219 }
221 - wfProfileOut( $fname );
 220+ wfProfileOut( __METHOD__ );
222221 return $ret;
223222 }
224223
Index: trunk/phase3/includes/SiteStats.php
@@ -204,7 +204,6 @@
205205 }
206206
207207 function doUpdate() {
208 - $fname = 'SiteStatsUpdate::doUpdate';
209208 $dbw = wfGetDB( DB_MASTER );
210209
211210 $updates = '';
@@ -221,7 +220,7 @@
222221
223222 # Need a separate transaction because this a global lock
224223 $dbw->begin();
225 - $dbw->query( $sql, $fname );
 224+ $dbw->query( $sql, __METHOD__ );
226225 $dbw->commit();
227226 }
228227 }

Status & tagging log