dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74016b7
)
Follow-up to r50689 "* (bug 18389) Localise numbers in EXIF data (patch by Marcus...
author
Brion Vibber
<brion@users.mediawiki.org>
Mon, 18 May 2009 20:20:58 +0000
(20:20 +0000)
committer
Brion 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
patch
|
blob
|
history
diff --git
a/includes/Exif.php
b/includes/Exif.php
index
b433837
..
1da218e
100644
(file)
--- 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 );