From e97891c16201b67ef42872db5df8afc4ec023c1d Mon Sep 17 00:00:00 2001 From: Platonides Date: Sun, 15 May 2011 12:37:50 +0000 Subject: [PATCH] Move $wgContLang out of the switch --- includes/media/FormatMetadata.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/media/FormatMetadata.php b/includes/media/FormatMetadata.php index 296d0e92a3..bce13a00a0 100644 --- a/includes/media/FormatMetadata.php +++ b/includes/media/FormatMetadata.php @@ -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. -- 2.20.1