Add missing wfProfileOut( __METHOD__ );
authorSam Reed <reedy@users.mediawiki.org>
Thu, 16 Feb 2012 02:01:00 +0000 (02:01 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 16 Feb 2012 02:01:00 +0000 (02:01 +0000)
includes/parser/CoreParserFunctions.php

index 13aa66f..9c39e8a 100644 (file)
@@ -282,8 +282,10 @@ class CoreParserFunctions {
 
                // Some shortcuts to avoid loading user data unnecessarily
                if ( count( $forms ) === 0 ) {
+                       wfProfileOut( __METHOD__ );
                        return '';
                } elseif ( count( $forms ) === 1 ) {
+                       wfProfileOut( __METHOD__ );
                        return $forms[0];
                }