From 007c1dc1d62575fedaba28d4da22e6ab0531e4e0 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Mon, 8 Apr 2013 19:37:17 +0200 Subject: [PATCH] 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 --- includes/cache/LocalisationCache.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } -- 2.20.1