From: Antoine Musso Date: Sat, 6 Jan 2007 18:20:58 +0000 (+0000) Subject: method name in wfDebug X-Git-Tag: 1.31.0-rc.0~54640 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=1f9c07cd910675297d8d7b24c15b63fc3d86b90b;p=lhc%2Fweb%2Fwiklou.git method name in wfDebug --- 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 ) ) {