$fname -> __METHOD__
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 7 Nov 2009 14:23:09 +0000 (14:23 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 7 Nov 2009 14:23:09 +0000 (14:23 +0000)
includes/ProxyTools.php
includes/SiteStats.php

index f76e24f..a0ee5ca 100644 (file)
@@ -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;
 }
 
index 0a7359b..16e3c5f 100644 (file)
@@ -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();
                }
        }