Fix a few things left over from old global announce stuff

git-svn-id: file:///svn/phpbb/trunk@1230 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2001-10-16 17:15:25 +00:00
parent cd37bbc657
commit 7285487e5b

View file

@ -941,10 +941,11 @@ if( ( $submit || $confirm || $mode == "delete" ) && !$error )
{
$sql .= ", forum_topics = forum_topics + 1";
}
$sql .= " WHERE forum_id = $forum_id";
/* if( $topic_type != POST_GLOBAL_ANNOUNCE )
{
$sql .= " WHERE forum_id = $forum_id";
}
*/
if($db->sql_query($sql))
@ -2255,7 +2256,7 @@ if( $mode == 'newtopic' || ( $mode == 'editpost' && $is_first_post_topic ) )
if( $userdata['user_level'] == ADMIN )
{
$global_announce_toggle = '<input type="radio" name="topictype" value="announce"';
$global_announce_toggle = '<input type="radio" name="topictype" value="global"';
if( $topic_type == POST_GLOBAL_ANNOUNCE )
{
$global_announce_toggle .= ' checked="checked"';