Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F5523
exif.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 10:31 PM
2014-11-21 22:31:51 (UTC+0)
Size
576 B
Referenced Files
None
Subscribers
None
exif.patch
View Options
Index: includes/Exif.php
===================================================================
--- includes/Exif.php (revision 49558)
+++ includes/Exif.php (working copy)
@@ -1080,11 +1080,12 @@
* @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 $m[2] != 0 ? $m[1] / $m[2] : $num;
+ return $wgLang->formatNum( $m[2] != 0 ? $m[1] / $m[2] : $num );
else
- return $num;
+ return $wgLang->formatNum( $num );
}
/**
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5075
Default Alt Text
exif.patch (576 B)
Attached To
Mode
T20389: EXIF data lacking localization
Attached
Detach File
Event Timeline
Log In to Comment