summaryrefslogtreecommitdiff
path: root/inc/actions.php
diff options
context:
space:
mode:
authorMichael Hamann <michael@content-space.de>2010-12-12 19:48:29 +0100
committerMichael Hamann <michael@content-space.de>2010-12-12 19:48:29 +0100
commit03f008cd4edafbcb75d5f3b99bd3271caabed988 (patch)
tree1db04fd82bad84bbd169817687658c5d4ed95488 /inc/actions.php
parent3e304b55d99607a2d4586c7a4f0219736d995478 (diff)
downloadrpg-03f008cd4edafbcb75d5f3b99bd3271caabed988.tar.gz
rpg-03f008cd4edafbcb75d5f3b99bd3271caabed988.tar.bz2
Copy changes from ajax_lock to act_draftsave
Diffstat (limited to 'inc/actions.php')
-rw-r--r--inc/actions.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/actions.php b/inc/actions.php
index d98382a3b..a4461d1ab 100644
--- a/inc/actions.php
+++ b/inc/actions.php
@@ -292,9 +292,10 @@ function act_draftsave($act){
global $conf;
if($conf['usedraft'] && $_POST['wikitext']){
$draft = array('id' => $ID,
- 'prefix' => $_POST['prefix'],
+ 'prefix' => substr($_POST['prefix'], 0, -1),
'text' => $_POST['wikitext'],
'suffix' => $_POST['suffix'],
+ 'date' => (int) $_POST['date'],
'date' => $_POST['date'],
'client' => $INFO['client'],
);