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:
fb6568b
)
Follow up to r51540 (revert r49677, r50459): global $wgLang was missing causing fatal...
author
Siebrand Mazeland
<siebrand@users.mediawiki.org>
Sat, 6 Jun 2009 22:04:17 +0000
(22:04 +0000)
committer
Siebrand Mazeland
<siebrand@users.mediawiki.org>
Sat, 6 Jun 2009 22:04:17 +0000
(22:04 +0000)
includes/Exif.php
patch
|
blob
|
history
diff --git
a/includes/Exif.php
b/includes/Exif.php
index
5581f1d
..
f601c92
100644
(file)
--- a/
includes/Exif.php
+++ b/
includes/Exif.php
@@
-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 );