From: <ste...@us...> - 2012-07-20 23:14:37
|
Revision: 11413 http://supertuxkart.svn.sourceforge.net/supertuxkart/?rev=11413&view=rev Author: stephenjust Date: 2012-07-20 23:14:31 +0000 (Fri, 20 Jul 2012) Log Message: ----------- [stkaddons] Minor locale fix, fix to xml to prevent a warning in-game when there is no rating specified, add iPhone/iPad application icons for home screen Modified Paths: -------------- stkaddons/trunk/include/locale.php stkaddons/trunk/include/xmlWrite.php Added Paths: ----------- stkaddons/trunk/apple-touch-icon-114x114-precomposed.png stkaddons/trunk/apple-touch-icon-72x72-precomposed.png stkaddons/trunk/apple-touch-icon.png Added: stkaddons/trunk/apple-touch-icon-114x114-precomposed.png =================================================================== (Binary files differ) Property changes on: stkaddons/trunk/apple-touch-icon-114x114-precomposed.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: stkaddons/trunk/apple-touch-icon-72x72-precomposed.png =================================================================== (Binary files differ) Property changes on: stkaddons/trunk/apple-touch-icon-72x72-precomposed.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: stkaddons/trunk/apple-touch-icon.png =================================================================== (Binary files differ) Property changes on: stkaddons/trunk/apple-touch-icon.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: stkaddons/trunk/include/locale.php =================================================================== --- stkaddons/trunk/include/locale.php 2012-07-20 22:48:37 UTC (rev 11412) +++ stkaddons/trunk/include/locale.php 2012-07-20 23:14:31 UTC (rev 11413) @@ -34,12 +34,14 @@ setcookie('lang', 'en_US', $timestamp_expire); putenv('LC_ALL=en_US.UTF-8'); setlocale(LC_ALL, 'en_US.UTF-8'); + $_COOKIE['lang'] = 'en_US'; } elseif (isset($_GET['lang'])) { // If the user has chosen a language setcookie('lang', $_GET['lang'], $timestamp_expire); putenv('LC_ALL='.$_GET['lang'].'.UTF-8'); setlocale(LC_ALL, $_GET['lang'].'.UTF-8'); + $_COOKIE['lang'] = $_GET['lang']; } else { Modified: stkaddons/trunk/include/xmlWrite.php =================================================================== --- stkaddons/trunk/include/xmlWrite.php 2012-07-20 22:48:37 UTC (rev 11412) +++ stkaddons/trunk/include/xmlWrite.php 2012-07-20 23:14:31 UTC (rev 11413) @@ -159,7 +159,7 @@ $writer->writeAttribute('size',filesize(UP_LOCATION.$file_path)); // Get add-on rating $rating = new Ratings($result['id']); - $writer->writeAttribute('rating',$rating->getAvgRating()); + $writer->writeAttribute('rating',sprintf('%.3f',$rating->getAvgRating())); $writer->endElement(); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |