From: Brion Vibber Date: Mon, 18 May 2009 20:20:58 +0000 (+0000) Subject: Follow-up to r50689 "* (bug 18389) Localise numbers in EXIF data (patch by Marcus... X-Git-Tag: 1.31.0-rc.0~41752 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22sites_tous%22%29%20.%20%22?a=commitdiff_plain;h=ea4dfa62c31db4f0c8e664821db713457f39bb62;p=lhc%2Fweb%2Fwiklou.git 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? --- 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 );