[geeklog-cvs] geeklog: Added a workaround to not lose the XMLSitemap prioritie...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sun Sep 6 13:02:43 EDT 2009
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/9d82257c93de
changeset: 7294:9d82257c93de
user: Dirk Haun <dirk at haun-online.de>
date: Sun Sep 06 18:26:24 2009 +0200
description:
Added a workaround to not lose the XMLSitemap priorities for Locales where the comma is used as the decimal separator
diffstat:
public_html/docs/history | 2 ++
system/classes/config.class.php | 11 ++++++++++-
2 files changed, 12 insertions(+), 1 deletions(-)
diffs (33 lines):
diff -r b58b76aa318b -r 9d82257c93de public_html/docs/history
--- a/public_html/docs/history Sun Sep 06 17:58:59 2009 +0200
+++ b/public_html/docs/history Sun Sep 06 18:26:24 2009 +0200
@@ -3,6 +3,8 @@
Oct ??, 2009 (1.6.1)
------------
+- Added a workaround to not lose the XMLSitemap priorities for Locales where
+ the comma is used as the decimal separator [Dirk]
- Keep track of actual upper/lowercase spelling of plugin names in the
XMLSitemap plugin [mystral-kk, Dirk]
- Added support for a CUSTOM_renderMenu function when rendering the top menu
diff -r b58b76aa318b -r 9d82257c93de system/classes/config.class.php
--- a/system/classes/config.class.php Sun Sep 06 17:58:59 2009 +0200
+++ b/system/classes/config.class.php Sun Sep 06 18:26:24 2009 +0200
@@ -638,7 +638,16 @@
$t->set_var('name', $name);
$t->set_var('display_name', $display_name);
if (!is_array($val)) {
- $t->set_var('value', htmlspecialchars($val));
+ if (is_float($val)) {
+ /**
+ * @todo FIXME: for Locales where the comma is the decimal
+ * separator, patch output to a decimal point
+ * to prevent it being cut off by COM_applyFilter
+ */
+ $t->set_var('value', str_replace(',', '.', $val));
+ } else {
+ $t->set_var('value', htmlspecialchars($val));
+ }
}
if ($deletable) {
$t->set_var('delete', $t->parse('output', 'delete-button'));
More information about the geeklog-cvs
mailing list