From 2d0dd7959c4450692e27374401158f87c91254e0 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 7 Nov 2009 14:23:09 +0000 Subject: [PATCH] $fname -> __METHOD__ --- includes/ProxyTools.php | 5 ++--- includes/SiteStats.php | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/includes/ProxyTools.php b/includes/ProxyTools.php index f76e24fb5d..a0ee5ca8e0 100644 --- a/includes/ProxyTools.php +++ b/includes/ProxyTools.php @@ -195,12 +195,11 @@ function wfParseCIDR( $range ) { */ function wfIsLocallyBlockedProxy( $ip ) { global $wgProxyList; - $fname = 'wfIsLocallyBlockedProxy'; if ( !$wgProxyList ) { return false; } - wfProfileIn( $fname ); + wfProfileIn( __METHOD__ ); if ( !is_array( $wgProxyList ) ) { # Load from the specified file @@ -217,7 +216,7 @@ function wfIsLocallyBlockedProxy( $ip ) { } else { $ret = false; } - wfProfileOut( $fname ); + wfProfileOut( __METHOD__ ); return $ret; } diff --git a/includes/SiteStats.php b/includes/SiteStats.php index 0a7359b9ac..16e3c5f285 100644 --- a/includes/SiteStats.php +++ b/includes/SiteStats.php @@ -204,7 +204,6 @@ class SiteStatsUpdate { } function doUpdate() { - $fname = 'SiteStatsUpdate::doUpdate'; $dbw = wfGetDB( DB_MASTER ); $updates = ''; @@ -221,7 +220,7 @@ class SiteStatsUpdate { # Need a separate transaction because this a global lock $dbw->begin(); - $dbw->query( $sql, $fname ); + $dbw->query( $sql, __METHOD__ ); $dbw->commit(); } } -- 2.20.1