From 1f9c07cd910675297d8d7b24c15b63fc3d86b90b Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sat, 6 Jan 2007 18:20:58 +0000 Subject: [PATCH] method name in wfDebug --- languages/Language.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/languages/Language.php b/languages/Language.php index aa83839cc6..fd7786e5aa 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -1528,7 +1528,7 @@ class Language { $cache = wfGetPrecompiledData( self::getFileName( "Messages", $code, '.ser' ) ); if ( $cache ) { self::$mLocalisationCache[$code] = $cache; - wfDebug( "Got localisation for $code from precompiled data file\n" ); + wfDebug( "Language::loadLocalisation(): got localisation for $code from precompiled data file\n" ); wfProfileOut( __METHOD__ ); return self::$mLocalisationCache[$code]['deps']; } @@ -1548,10 +1548,10 @@ class Language { if ( self::isLocalisationOutOfDate( $cache ) ) { $wgMemc->delete( $memcKey ); $cache = false; - wfDebug( "Localisation cache for $code had expired due to update of $file\n" ); + wfDebug( "Language::loadLocalisation(): localisation cache for $code had expired due to update of $file\n" ); } else { self::$mLocalisationCache[$code] = $cache; - wfDebug( "Got localisation for $code from cache\n" ); + wfDebug( "Language::loadLocalisation(): got localisation for $code from cache\n" ); wfProfileOut( __METHOD__ ); return $cache['deps']; } @@ -1570,14 +1570,14 @@ class Language { # Load the primary localisation from the source file $filename = self::getMessagesFileName( $code ); if ( !file_exists( $filename ) ) { - wfDebug( "No localisation file for $code, using implicit fallback to en\n" ); + wfDebug( "Language::loadLocalisation(): no localisation file for $code, using implicit fallback to en\n" ); $cache = array(); $deps = array(); } else { $deps = array( $filename => filemtime( $filename ) ); require( $filename ); $cache = compact( self::$mLocalisationKeys ); - wfDebug( "Got localisation for $code from source\n" ); + wfDebug( "Language::loadLocalisation(): got localisation for $code from source\n" ); } if ( !empty( $fallback ) ) { -- 2.20.1