From 27a7e8a401f6f8ea7b7d5fe6db502cdaee31ed09 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sat, 15 Dec 2001 14:19:29 +0000 Subject: [PATCH] Fixed empty topic title issue when editing posts + moderation of locked topics git-svn-id: file:///svn/phpbb/trunk@1583 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/posting.php | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/phpBB/posting.php b/phpBB/posting.php index 604b14e98a..3cafe88871 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -865,18 +865,6 @@ else } } -// -// Is topic or forum locked? -// -if( $forum_status == FORUM_LOCKED ) -{ - message_die(GENERAL_MESSAGE, $lang['Forum_locked']); -} -else if( $topic_status == TOPIC_LOCKED ) -{ - message_die(GENERAL_MESSAGE, $lang['Topic_locked']); -} - // // Set topic type // @@ -999,6 +987,18 @@ if( !$is_auth[$is_auth_type] ) // End Auth // +// +// Is topic or forum locked? +// +if( $forum_status == FORUM_LOCKED && !$is_auth['auth_mod']) +{ + message_die(GENERAL_MESSAGE, $lang['Forum_locked']); +} +else if( $topic_status == TOPIC_LOCKED && !$is_auth['auth_mod']) +{ + message_die(GENERAL_MESSAGE, $lang['Topic_locked']); +} + // // Notify on reply // @@ -1058,7 +1058,7 @@ if( $submit && $mode != "vote" ) } $post_subject = trim(strip_tags($HTTP_POST_VARS['subject'])); - if( $mode == 'newtopic' && empty($post_subject) ) + if( ( $mode == "newtopic" || $mode == "editpost" ) && empty($post_subject) ) { $error = TRUE; if( !empty($error_msg) )