Follow up to r51540 (revert r49677, r50459): global $wgLang was missing causing fatal...
authorSiebrand Mazeland <siebrand@users.mediawiki.org>
Sat, 6 Jun 2009 22:04:17 +0000 (22:04 +0000)
committerSiebrand Mazeland <siebrand@users.mediawiki.org>
Sat, 6 Jun 2009 22:04:17 +0000 (22:04 +0000)
includes/Exif.php

index 5581f1d..f601c92 100644 (file)
@@ -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 );