From: Siebrand Mazeland Date: Sat, 6 Jun 2009 22:04:17 +0000 (+0000) Subject: Follow up to r51540 (revert r49677, r50459): global $wgLang was missing causing fatal... X-Git-Tag: 1.31.0-rc.0~41469 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=81545290b4254ee1a3fb026ef0fab9e7e5f459aa;p=lhc%2Fweb%2Fwiklou.git Follow up to r51540 (revert r49677, r50459): global $wgLang was missing causing fatal error. --- diff --git a/includes/Exif.php b/includes/Exif.php index 5581f1d0f4..f601c92d99 100644 --- a/includes/Exif.php +++ b/includes/Exif.php @@ -1080,6 +1080,8 @@ class FormatExif { * @return mixed A floating point number or whatever we were fed */ function formatNum( $num ) { + global $wgLang; + $m = array(); if ( preg_match( '/^(\d+)\/(\d+)$/', $num, $m ) ) return $wgLang->formatNum( $m[2] != 0 ? $m[1] / $m[2] : $num );