Revision: 1836
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1836&view=rev
Author:   cimorrison
Date:     2011-06-08 10:31:11 +0000 (Wed, 08 Jun 2011)

Log Message:
-----------
Fixed bug that caused durations to be formatted incorrectly in some languages 
(eg German).   See SF tracker #3313655.

Modified Paths:
--------------
    mrbs/trunk/web/functions.inc

Modified: mrbs/trunk/web/functions.inc
===================================================================
--- mrbs/trunk/web/functions.inc        2011-06-05 16:01:23 UTC (rev 1835)
+++ mrbs/trunk/web/functions.inc        2011-06-08 10:31:11 UTC (rev 1836)
@@ -187,7 +187,7 @@
   if (is_float($dur))
   {
     $dur = sprintf('%.3f', $dur);
-    $dur = (string) (float) $dur;  // removes trailing zeros
+    $dur = rtrim($dur, '0');  // removes trailing zeros
   }
   
   // Translate into local language if required


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to