From ea4dfa62c31db4f0c8e664821db713457f39bb62 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 18 May 2009 20:20:58 +0000 Subject: [PATCH] Follow-up to r50689 "* (bug 18389) Localise numbers in EXIF data (patch by Marcus Buck and Ahmad Sherif). Possible FIXME: Is said not to work for "Exif version" and fraction in "Exposure time"" Fixes the fraction formatting for the exposure time. Haven't actually seen anything with exif version? --- includes/Exif.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Exif.php b/includes/Exif.php index b433837b64..1da218edb1 100644 --- a/includes/Exif.php +++ b/includes/Exif.php @@ -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 ); -- 2.20.1