r51557 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51556‎ | r51557 | r51558 >
Date:22:04, 6 June 2009
Author:siebrand
Status:ok
Tags:
Comment:
Follow up to r51540 (revert r49677, r50459): global $wgLang was missing causing fatal error.
Modified paths:
  • /trunk/phase3/includes/Exif.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Exif.php
@@ -1080,6 +1080,8 @@
10811081 * @return mixed A floating point number or whatever we were fed
10821082 */
10831083 function formatNum( $num ) {
 1084+ global $wgLang;
 1085+
10841086 $m = array();
10851087 if ( preg_match( '/^(\d+)\/(\d+)$/', $num, $m ) )
10861088 return $wgLang->formatNum( $m[2] != 0 ? $m[1] / $m[2] : $num );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r49677Apply patch for bug 13172 by Brent G <overlordq@gmail.com> with minor modific...vyznev22:29, 20 April 2009
r50459fix regression from r49677 by refusing to format old-style metadata even if a...vyznev20:33, 10 May 2009
r51540Revert r49677, r50459, Brent G's patch for fixing GPS coordinates in EXIF. As...tstarling15:48, 6 June 2009

Status & tagging log