aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2008-02-01 13:12:05 +0000
committerHenry Sudhof <kellanved@phpbb.com>2008-02-01 13:12:05 +0000
commitae0fb4b070fc689a3639a0864ba1c4f3889d6c91 (patch)
tree068c0d890dd951b852cbe7b4c060fde6f2f439c4 /phpBB/posting.php
parentcc1ac794502e116f3367c12cc0e4fa272d0a29ec (diff)
downloadforums-ae0fb4b070fc689a3639a0864ba1c4f3889d6c91.tar
forums-ae0fb4b070fc689a3639a0864ba1c4f3889d6c91.tar.gz
forums-ae0fb4b070fc689a3639a0864ba1c4f3889d6c91.tar.bz2
forums-ae0fb4b070fc689a3639a0864ba1c4f3889d6c91.tar.xz
forums-ae0fb4b070fc689a3639a0864ba1c4f3889d6c91.zip
#15120
#16029 git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8362 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 8a2ece6fde..fc83659e3e 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -582,7 +582,7 @@ if ($submit || $preview || $refresh)
$post_data['enable_bbcode'] = (!$bbcode_status || isset($_POST['disable_bbcode'])) ? false : true;
$post_data['enable_smilies'] = (!$smilies_status || isset($_POST['disable_smilies'])) ? false : true;
$post_data['enable_urls'] = (isset($_POST['disable_magic_url'])) ? 0 : 1;
- $post_data['enable_sig'] = (!$config['allow_sig']) ? false : ((isset($_POST['attach_sig']) && $user->data['is_registered']) ? true : false);
+ $post_data['enable_sig'] = (!$config['allow_sig'] || !$auth->acl_get('f_sigs', $forum_id) || !$auth->acl_get('u_sig')) ? false : ((isset($_POST['attach_sig']) && $user->data['is_registered']) ? true : false);
if ($config['allow_topic_notify'] && $user->data['is_registered'])
{
@@ -1428,6 +1428,7 @@ function handle_post_delete($forum_id, $topic_id, $post_id, &$post_data)
$data = array(
'topic_first_post_id' => $post_data['topic_first_post_id'],
'topic_last_post_id' => $post_data['topic_last_post_id'],
+ 'topic_replies_real' => $post_data['topic_replies_real'],
'topic_approved' => $post_data['topic_approved'],
'topic_type' => $post_data['topic_type'],
'post_approved' => $post_data['post_approved'],
@@ -1439,7 +1440,7 @@ function handle_post_delete($forum_id, $topic_id, $post_id, &$post_data)
$next_post_id = delete_post($forum_id, $topic_id, $post_id, $data);
- if ($post_data['topic_first_post_id'] == $post_data['topic_last_post_id'])
+ if ($next_post_id === false)
{
add_log('mod', $forum_id, $topic_id, 'LOG_DELETE_TOPIC', $post_data['topic_title']);