aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_posting.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2003-04-22 16:47:34 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2003-04-22 16:47:34 +0000
commit899f7bc1d7127dda2daeff29015e907e81fc029e (patch)
tree798b4fa0405094f2b18bae13eed1fa01f7230ae3 /phpBB/includes/functions_posting.php
parent9cb38cc0f9b8434cd4f738c790a41fcb0ec564c7 (diff)
downloadforums-899f7bc1d7127dda2daeff29015e907e81fc029e.tar
forums-899f7bc1d7127dda2daeff29015e907e81fc029e.tar.gz
forums-899f7bc1d7127dda2daeff29015e907e81fc029e.tar.bz2
forums-899f7bc1d7127dda2daeff29015e907e81fc029e.tar.xz
forums-899f7bc1d7127dda2daeff29015e907e81fc029e.zip
Re-enabled polling ... includes option of multiple choice polling, indication of option voted for, etc. ... preliminary implementation, various things need finishing
git-svn-id: file:///svn/phpbb/trunk@3920 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r--phpBB/includes/functions_posting.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index 225b286b51..9cb2dabd02 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -949,7 +949,8 @@ function submit_post($mode, $message, $subject, $username, $topic_type, $bbcode_
{
$topic_sql = array_merge($topic_sql, array(
'poll_title' => stripslashes($poll['poll_title']),
- 'poll_start' => ($poll['poll_start']) ? $poll['poll_start'] : $current_time,
+ 'poll_start' => ($poll['poll_start']) ? $poll['poll_start'] : $current_time,
+ 'poll_max_options' => $poll['poll_max_options'],
'poll_length' => $poll['poll_length'] * 3600)
);
}
@@ -1181,7 +1182,7 @@ function submit_post($mode, $message, $subject, $username, $topic_type, $bbcode_
}
// Mark this topic as read and posted to.
- $mark_mode = ($mode == 'reply' || $mode == 'quote') ? 'post' : 'topic';
+ $mark_mode = ($mode == 'post' || $mode == 'reply' || $mode == 'quote') ? 'post' : 'topic';
markread($mark_mode, $post_data['forum_id'], $post_data['topic_id'], $post_data['post_id']);
$db->sql_transaction('commit');