|
From: Paul S. O. <ps...@us...> - 2001-12-15 14:19:34
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv6484
Modified Files:
posting.php
Log Message:
Fixed empty topic title issue when editing posts + moderation of locked topics
Index: posting.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/posting.php,v
retrieving revision 1.123
retrieving revision 1.124
diff -C2 -r1.123 -r1.124
*** posting.php 2001/12/11 08:55:17 1.123
--- posting.php 2001/12/15 14:19:29 1.124
***************
*** 867,882 ****
//
- // 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
//
--- 867,870 ----
***************
*** 1000,1003 ****
--- 988,1003 ----
//
+ //
+ // 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
***************
*** 1059,1063 ****
$post_subject = trim(strip_tags($HTTP_POST_VARS['subject']));
! if( $mode == 'newtopic' && empty($post_subject) )
{
$error = TRUE;
--- 1059,1063 ----
$post_subject = trim(strip_tags($HTTP_POST_VARS['subject']));
! if( ( $mode == "newtopic" || $mode == "editpost" ) && empty($post_subject) )
{
$error = TRUE;
|