diff options
| author | Dhruv Goel <dhruv.goel92@gmail.com> | 2014-03-20 01:50:17 +0530 |
|---|---|---|
| committer | Dhruv Goel <dhruv.goel92@gmail.com> | 2014-03-20 01:50:17 +0530 |
| commit | 03f6ad544f6754a96278cc74f984202f1c80bc58 (patch) | |
| tree | ea16f18503870a2ba68addc221a6bcfdec3dfb13 /phpBB | |
| parent | 2d1e6975b47afb4466f865fc0c285498edefb2b0 (diff) | |
| parent | 3ea1ee651c1f600b6104d3d05576e1e9b856874f (diff) | |
| download | forums-03f6ad544f6754a96278cc74f984202f1c80bc58.tar forums-03f6ad544f6754a96278cc74f984202f1c80bc58.tar.gz forums-03f6ad544f6754a96278cc74f984202f1c80bc58.tar.bz2 forums-03f6ad544f6754a96278cc74f984202f1c80bc58.tar.xz forums-03f6ad544f6754a96278cc74f984202f1c80bc58.zip | |
Merge pull request #2145 from Elsensee/ticket/10590
[ticket/10590] Remove confirmation page after posting
Diffstat (limited to 'phpBB')
| -rw-r--r-- | phpBB/posting.php | 12 |
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); } } } |
