From 421c22ae13e8de7f63d1fe6ed683ee4b8a48a8ee Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sat, 2 May 2015 11:01:06 +0200 Subject: use string for version number. closes #1100 PHP will localize floats (eg. a 45.5 becomes 45,5 in a German locale). Using a string will prevent that. A fix has been applied on the server end, but it makes sense to always send the correct message. --- doku.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doku.php') diff --git a/doku.php b/doku.php index f5aa6cfa4..0f4557fd0 100644 --- a/doku.php +++ b/doku.php @@ -8,8 +8,8 @@ * @global Input $INPUT */ -// update message version -$updateVersion = 47; +// update message version - always use a string to avoid localized floats! +$updateVersion = "47"; // xdebug_start_profiling(); @@ -77,7 +77,7 @@ if($DATE_AT) { $DATE_AT = null; } else if ($rev_t === false) { //page did not exist $rev_n = $pagelog->getRelativeRevision($DATE_AT,+1); - msg(sprintf($lang['page_nonexist_rev'], + msg(sprintf($lang['page_nonexist_rev'], strftime($conf['dformat'],$DATE_AT), wl($ID, array('rev' => $rev_n)), strftime($conf['dformat'],$rev_n))); -- cgit v1.2.3