From 54fcf137a5bf5516af3526c4a232f8ac0a613b38 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sat, 21 Jul 2001 14:17:08 +0000 Subject: [PATCH] Fixed editpost check for login redirect git-svn-id: file:///svn/phpbb/trunk@721 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/posting.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/phpBB/posting.php b/phpBB/posting.php index c3a59ae1f7..17811bfa96 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -262,7 +262,7 @@ if(!$is_auth[$is_auth_type]) { $redirect = "mode=quote&" . POST_POST_URL ."=$post_id"; } - else if($mode == "edit") + else if($mode == "editpost") { $redirect = "mode=editpost&" . POST_POST_URL ."=$post_id&" . POST_TOPIC_URL . "=$topic_id"; } @@ -490,7 +490,7 @@ if( ($mode == "newtopic" || $mode == "reply") && $topic_status == TOPIC_UNLOCKED // // If we get here the post has been inserted successfully. // - $msg = $lang['Stored'] . "

" . $lang['Click'] . " " . $lang['Here'] . " " . $lang['to_view_message'] . "

" . $lang['Click'] . " " . $lang['Here'] . " ". $lang['to_return_forum']; + $msg = $lang['Stored'] . "

" . $lang['Click'] . " " . $lang['Here'] . " " . $lang['to_view_message'] . "

" . $lang['Click'] . " " . $lang['Here'] . " ". $lang['to_return_forum']; message_die(GENERAL_MESSAGE, $msg); } @@ -837,7 +837,7 @@ else if( $mode == "editpost" && $topic_status == TOPIC_UNLOCKED ) // // If we get here the post has been inserted successfully. // - $msg = $lang['Stored'] . "

" . $lang['Click'] . " " . $lang['Here'] . " " . $lang['to_view_message'] . "

" . $lang['Click'] . " " . $lang['Here'] . " ". $lang['to_return_forum']; + $msg = $lang['Stored'] . "

" . $lang['Click'] . " " . $lang['Here'] . " " . $lang['to_view_message'] . "

" . $lang['Click'] . " " . $lang['Here'] . " ". $lang['to_return_forum']; message_die(GENERAL_MESSAGE, $msg); } @@ -854,7 +854,7 @@ else if( $mode == "editpost" && $topic_status == TOPIC_UNLOCKED ) // // If we get here the post has been inserted successfully. // - $msg = $lang['Stored'] . "

" . $lang['Click'] . " " . $lang['Here'] . " " . $lang['to_view_message'] . "

" . $lang['Click'] . " " . $lang['Here'] . " ". $lang['to_return_forum']; + $msg = $lang['Stored'] . "

" . $lang['Click'] . " " . $lang['Here'] . " " . $lang['to_view_message'] . "

" . $lang['Click'] . " " . $lang['Here'] . " ". $lang['to_return_forum']; message_die(GENERAL_MESSAGE, $msg); }