aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Schramm <oliver.schramm97@gmail.com>2014-03-16 17:54:58 +0100
committerOliver Schramm <oliver.schramm97@gmail.com>2014-03-16 17:54:58 +0100
commite2835d66cd630798458993e27e8ff2ea5eb6bfe8 (patch)
tree6cba7fbda96f0425f1c92886910960b738497f4c
parent69c195687f2bdbbc2f21094432b1ee4f74c2d414 (diff)
downloadforums-e2835d66cd630798458993e27e8ff2ea5eb6bfe8.tar
forums-e2835d66cd630798458993e27e8ff2ea5eb6bfe8.tar.gz
forums-e2835d66cd630798458993e27e8ff2ea5eb6bfe8.tar.bz2
forums-e2835d66cd630798458993e27e8ff2ea5eb6bfe8.tar.xz
forums-e2835d66cd630798458993e27e8ff2ea5eb6bfe8.zip
[ticket/10590] Remove confirmation page after posting
PHPBB3-10590
-rw-r--r--phpBB/posting.php12
1 files changed, 3 insertions, 9 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 442e1d9782..aee9ba50af 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -1213,17 +1213,11 @@ if ($submit || $preview || $refresh)
meta_refresh(10, $redirect_url);
$message = ($mode == 'edit') ? $user->lang['POST_EDITED_MOD'] : $user->lang['POST_STORED_MOD'];
$message .= (($user->data['user_id'] == ANONYMOUS) ? '' : ' '. $user->lang['POST_APPROVAL_NOTIFY']);
+ $message .= '<br /><br />' . sprintf($user->lang['RETURN_FORUM'], '<a href="' . append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $data['forum_id']) . '">', '</a>');
+ trigger_error($message);
}
- else
- {
- meta_refresh(3, $redirect_url);
- $message = ($mode == 'edit') ? 'POST_EDITED' : 'POST_STORED';
- $message = $user->lang[$message] . '<br /><br />' . sprintf($user->lang['VIEW_MESSAGE'], '<a href="' . $redirect_url . '">', '</a>');
- }
-
- $message .= '<br /><br />' . sprintf($user->lang['RETURN_FORUM'], '<a href="' . append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $data['forum_id']) . '">', '</a>');
- trigger_error($message);
+ redirect($redirect_url);
}
}
}