aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2005-06-10 18:57:21 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2005-06-10 18:57:21 +0000
commite6469bb0d0bc7cdb7a237fab5cc2056517b8be4a (patch)
tree46afcc3a92fe0b61f83d35a854fe4d663915f95c /phpBB/posting.php
parentd24f5d734b2a2f059005ce45241d6564fea047e3 (diff)
downloadforums-e6469bb0d0bc7cdb7a237fab5cc2056517b8be4a.tar
forums-e6469bb0d0bc7cdb7a237fab5cc2056517b8be4a.tar.gz
forums-e6469bb0d0bc7cdb7a237fab5cc2056517b8be4a.tar.bz2
forums-e6469bb0d0bc7cdb7a237fab5cc2056517b8be4a.tar.xz
forums-e6469bb0d0bc7cdb7a237fab5cc2056517b8be4a.zip
- log removing posts
- fix queue saving if package size is 0 - user memberships (not used atm) git-svn-id: file:///svn/phpbb/trunk@5157 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php26
1 files changed, 15 insertions, 11 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 5d695cc733..fda39ae0ed 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -335,30 +335,34 @@ if ($mode == 'delete' && (($poster_id == $user->data['user_id'] && $user->data['
if (confirm_box(true))
{
$data = array(
- 'topic_first_post_id' => $topic_first_post_id,
- 'topic_last_post_id' => $topic_last_post_id,
- 'topic_approved' => $topic_approved,
- 'topic_type' => $topic_type,
- 'post_approved' => $post_approved,
- 'post_time' => $post_time,
- 'poster_id' => $poster_id
+ 'topic_first_post_id' => $topic_first_post_id,
+ 'topic_last_post_id' => $topic_last_post_id,
+ 'topic_approved' => $topic_approved,
+ 'topic_type' => $topic_type,
+ 'post_approved' => $post_approved,
+ 'post_time' => $post_time,
+ 'poster_id' => $poster_id
);
$next_post_id = delete_post($mode, $post_id, $topic_id, $forum_id, $data);
if ($topic_first_post_id == $topic_last_post_id)
{
- $meta_info = "viewforum.$phpEx$SID&amp;f=$forum_id";
+ add_log('mod', $forum_id, $topic_id, 'LOG_DELETE_TOPIC', $topic_title);
+
+ $meta_info = "{$phpbb_root_path}viewforum.$phpEx$SID&amp;f=$forum_id";
$message = $user->lang['POST_DELETED'];
}
else
{
- $meta_info = "viewtopic.$phpEx$SID&amp;f=$forum_id&amp;t=$topic_id&amp;p=$next_post_id#$next_post_id";
- $message = $user->lang['POST_DELETED'] . '<br /><br />' . sprintf($user->lang['RETURN_TOPIC'], "<a href=\"viewtopic.$phpEx$SID&amp;f=$forum_id&amp;t=$topic_id&amp;p=$next_post_id#$next_post_id\">", '</a>');
+ add_log('mod', $forum_id, $topic_id, 'LOG_DELETE_POST', $post_subject);
+
+ $meta_info = "{$phpbb_root_path}viewtopic.$phpEx$SID&amp;f=$forum_id&amp;t=$topic_id&amp;p=$next_post_id#$next_post_id";
+ $message = $user->lang['POST_DELETED'] . '<br /><br />' . sprintf($user->lang['RETURN_TOPIC'], "<a href=\"{$phpbb_root_path}viewtopic.$phpEx$SID&amp;f=$forum_id&amp;t=$topic_id&amp;p=$next_post_id#$next_post_id\">", '</a>');
}
meta_refresh(3, $meta_info);
- $message .= '<br /><br />' . sprintf($user->lang['RETURN_FORUM'], "<a href=\"viewforum.$phpEx$SID&amp;f=$forum_id\">", '</a>');
+ $message .= '<br /><br />' . sprintf($user->lang['RETURN_FORUM'], "<a href=\"{$phpbb_root_path}viewforum.$phpEx$SID&amp;f=$forum_id\">", '</a>');
trigger_error($message);
}
else