From 07ae28cb97c1da281a838618db4154e7f110981c Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Wed, 28 May 2008 14:13:01 +0000 Subject: [PATCH] $fname -> __FUNCTION__ --- includes/SpecialRecentchanges.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/includes/SpecialRecentchanges.php b/includes/SpecialRecentchanges.php index 2599477991..cd1dac0885 100644 --- a/includes/SpecialRecentchanges.php +++ b/includes/SpecialRecentchanges.php @@ -16,7 +16,6 @@ function wfSpecialRecentchanges( $par, $specialPage ) { global $wgUser, $wgOut, $wgRequest, $wgUseRCPatrol; global $wgRCShowWatchingUsers, $wgShowUpdatedMarker; global $wgAllowCategorizedRecentChanges ; - $fname = 'wfSpecialRecentchanges'; # Get query parameters $feedFormat = $wgRequest->getVal( 'feed' ); @@ -116,7 +115,7 @@ function wfSpecialRecentchanges( $par, $specialPage ) { # Get last modified date, for client caching # Don't use this if we are using the patrol feature, patrol changes don't update the timestamp - $lastmod = $dbr->selectField( 'recentchanges', 'MAX(rc_timestamp)', false, $fname ); + $lastmod = $dbr->selectField( 'recentchanges', 'MAX(rc_timestamp)', false, __FUNCTION__ ); if ( $feedFormat || !$wgUseRCPatrol ) { if( $lastmod && $wgOut->checkLastModified( $lastmod ) ){ # Client cache fresh and headers sent, nothing more to do. @@ -710,8 +709,7 @@ function rcFormatDiff( $row ) { function rcFormatDiffRow( $title, $oldid, $newid, $timestamp, $comment, $actiontext='' ) { global $wgFeedDiffCutoff, $wgContLang, $wgUser; - $fname = 'rcFormatDiff'; - wfProfileIn( $fname ); + wfProfileIn( __FUNCTION__ ); $skin = $wgUser->getSkin(); # log enties @@ -728,7 +726,7 @@ function rcFormatDiffRow( $title, $oldid, $newid, $timestamp, $comment, $actiont if( $title->getNamespace() >= 0 && !$accErrors ) { if( $oldid ) { - wfProfileIn( "$fname-dodiff" ); + wfProfileIn( __FUNCTION__."-dodiff" ); $de = new DifferenceEngine( $title, $oldid, $newid ); #$diffText = $de->getDiff( wfMsg( 'revisionasof', @@ -758,7 +756,7 @@ function rcFormatDiffRow( $title, $oldid, $newid, $timestamp, $comment, $actiont $diffText = UtfNormal::cleanUp( $diffText ); $diffText = rcApplyDiffStyle( $diffText ); } - wfProfileOut( "$fname-dodiff" ); + wfProfileOut( __FUNCTION__."-dodiff" ); } else { $rev = Revision::newFromId( $newid ); if( is_null( $rev ) ) { @@ -772,7 +770,7 @@ function rcFormatDiffRow( $title, $oldid, $newid, $timestamp, $comment, $actiont $completeText .= $diffText; } - wfProfileOut( $fname ); + wfProfileOut( __FUNCTION__ ); return $completeText; } -- 2.20.1