From: umherirrender Date: Mon, 8 Apr 2013 17:37:17 +0000 (+0200) Subject: Add missing wfProfileOut to LocalisationCache X-Git-Tag: 1.31.0-rc.0~20071 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=007c1dc1d62575fedaba28d4da22e6ab0531e4e0;p=lhc%2Fweb%2Fwiklou.git Add missing wfProfileOut to LocalisationCache Follow up Ib94a8c18c4e270a7bd46faa17eb27a22ff950f75 Moved some empty lines to match the places of other profile calls in the file. Change-Id: I6616b18027cdb9e70b43948aaff999a2e25b07e0 --- diff --git a/includes/cache/LocalisationCache.php b/includes/cache/LocalisationCache.php index a313e527bb..b3b0d4d755 100644 --- a/includes/cache/LocalisationCache.php +++ b/includes/cache/LocalisationCache.php @@ -611,10 +611,11 @@ class LocalisationCache { */ protected function readSourceFilesAndRegisterDeps( $code, &$deps ) { global $IP; - wfProfileIn( __METHOD__ ); + $fileName = Language::getMessagesFileName( $code ); if ( !file_exists( $fileName ) ) { + wfProfileOut( __METHOD__ ); return false; } @@ -630,8 +631,8 @@ class LocalisationCache { $deps['plurals'] = new FileDependency( "$IP/languages/data/plurals.xml" ); $deps['plurals-mw'] = new FileDependency( "$IP/languages/data/plurals-mediawiki.xml" ); - wfProfileOut( __METHOD__ ); + wfProfileOut( __METHOD__ ); return $data; }