Add missing wfProfileOut to LocalisationCache
authorumherirrender <umherirrender_de.wp@web.de>
Mon, 8 Apr 2013 17:37:17 +0000 (19:37 +0200)
committerumherirrender <umherirrender_de.wp@web.de>
Mon, 8 Apr 2013 17:37:17 +0000 (19:37 +0200)
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

index a313e52..b3b0d4d 100644 (file)
@@ -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;
        }