summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorMichael Save <savetheinternet@tinyboard.org>2012-03-14 18:09:23 +1100
committerMichael Save <savetheinternet@tinyboard.org>2012-03-14 18:09:23 +1100
commit60aab92f47e651b214f0b993aab03d08e033134e (patch)
tree8d43d0114b68a750ddfc58390b8515819e0125c3 /post.php
parent272cc7c2f954bddd173cdc0317980c3c0e3133c5 (diff)
allow quick-reply.js to work
Diffstat (limited to 'post.php')
-rw-r--r--post.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/post.php b/post.php
index 1f20b49d..c8170e16 100644
--- a/post.php
+++ b/post.php
@@ -161,7 +161,11 @@
if(isset($_POST['thread'])) {
$OP = false;
$post['thread'] = round($_POST['thread']);
- } else $OP = true;
+ } elseif($config['quick_reply'] && isset($_POST['quick-reply'])) {
+ $OP = false;
+ $post['thread'] = round($_POST['quick-reply']);
+ } else
+ $OP = true;
if(!(($OP && $_POST['post'] == $config['button_newtopic']) ||
(!$OP && $_POST['post'] == $config['button_reply'])))
@@ -194,7 +198,7 @@
}
}
- if(checkSpam(Array($board['uri'], isset($post['thread']) ? $post['thread'] : null)))
+ if(checkSpam(Array($board['uri'], isset($post['thread']) && !($config['quick_reply'] && isset($_POST['quick-reply'])) ? $post['thread'] : null)))
error($config['error']['spam']);
if($config['robot_enable'] && $config['robot_mute']) {