Revision: 1607
http://mrbs.svn.sourceforge.net/mrbs/?rev=1607&view=rev
Author: cimorrison
Date: 2010-11-16 22:33:01 +0000 (Tue, 16 Nov 2010)
Log Message:
-----------
Fixed a problem whereby MRBS wasn't properly recognising the override_locale
when initialising datepicker if the locale contained a character set (eg
"en_GB.utf-8").
Modified Paths:
--------------
mrbs/trunk/web/Themes/default/header.inc
Modified: mrbs/trunk/web/Themes/default/header.inc
===================================================================
--- mrbs/trunk/web/Themes/default/header.inc 2010-11-16 21:48:40 UTC (rev
1606)
+++ mrbs/trunk/web/Themes/default/header.inc 2010-11-16 22:33:01 UTC (rev
1607)
@@ -140,6 +140,7 @@
if (!empty($datepicker_locale)) // in case the array_search() returned
FALSE
{
$datepicker_locale = locale_format($datepicker_locale, '-');
+ $datepicker_locale = substr($datepicker_locale, 0, 5); // strip off
anything after the country (eg charset)
$datepicker_lang = substr($datepicker_locale, 0, 2);
// First we'll try and get the correct language and then we'll try and
// overwrite that with the correct country variant
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits