Fixes for r81936 per Tim's review
[lhc/web/wiklou.git] / languages / LanguageConverter.php
index 5528c15..5c2289a 100644 (file)
@@ -308,8 +308,8 @@ class LanguageConverter {
         * @return String like ' alt="yyyy"' or ' title="yyyy"'
         */
        protected function captionConvert( $matches ) {
-         // TODO: cache the preferred variant in every autoConvert() process,
-         // this helps improve performance in a way.
+               // TODO: cache the preferred variant in every autoConvert() process,
+               // this helps improve performance in a way.
                $toVariant = $this->getPreferredVariant();
                $title = $matches[1];
                $text = $matches[2];
@@ -345,6 +345,7 @@ class LanguageConverter {
                if ( !$toVariant ) {
                        $toVariant = $this->getPreferredVariant();
                        if ( !$toVariant ) {
+                               wfProfileOut( __METHOD__ );
                                return $text;
                        }
                }