From 81545290b4254ee1a3fb026ef0fab9e7e5f459aa Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Sat, 6 Jun 2009 22:04:17 +0000 Subject: [PATCH] Follow up to r51540 (revert r49677, r50459): global $wgLang was missing causing fatal error. --- includes/Exif.php | 2 ++ 1 file changed, 2 insertions(+) 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 ); -- 2.20.1