Move $wgContLang out of the switch
authorPlatonides <platonides@users.mediawiki.org>
Sun, 15 May 2011 12:37:50 +0000 (12:37 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Sun, 15 May 2011 12:37:50 +0000 (12:37 +0000)
includes/media/FormatMetadata.php

index 296d0e9..bce13a0 100644 (file)
@@ -847,9 +847,9 @@ class FormatMetadata {
                * languages, we don't want to show them all by default
                */
                else {
+                       global $wgContLang;
                        switch( $type ) {
                        case 'lang':
-                               global $wgContLang;
                                // Display default, followed by ContLang,
                                // followed by the rest in no particular
                                // order.