summaryrefslogtreecommitdiff
path: root/doku.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2015-05-02 11:01:06 +0200
committerAndreas Gohr <andi@splitbrain.org>2015-05-02 11:01:06 +0200
commit421c22ae13e8de7f63d1fe6ed683ee4b8a48a8ee (patch)
tree6b3faed8475639bb106c402405596c44bc646a4a /doku.php
parent65e048b387dc6e4a8091e86c908f50b6d66e5157 (diff)
downloadrpg-421c22ae13e8de7f63d1fe6ed683ee4b8a48a8ee.tar.gz
rpg-421c22ae13e8de7f63d1fe6ed683ee4b8a48a8ee.tar.bz2
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.
Diffstat (limited to 'doku.php')
-rw-r--r--doku.php6
1 files changed, 3 insertions, 3 deletions
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)));