Follow-up to r50689 "* (bug 18389) Localise numbers in EXIF data (patch by Marcus...
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 18 May 2009 20:20:58 +0000 (20:20 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 18 May 2009 20:20:58 +0000 (20:20 +0000)
Fixes the fraction formatting for the exposure time. Haven't actually seen anything with exif version?

includes/Exif.php

index b433837..1da218e 100644 (file)
@@ -1109,7 +1109,7 @@ class FormatExif {
                        $gcd = $this->gcd( $numerator, $denominator );
                        if( $gcd != 0 ) {
                                // 0 shouldn't happen! ;)
-                               return $numerator / $gcd . '/' . $denominator / $gcd;
+                               return $this->formatNum( $numerator / $gcd ) . '/' . $this->formatNum( $denominator / $gcd );
                        }
                }
                return $this->formatNum( $num );