mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
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:
parent
cd37bbc657
commit
7285487e5b
1 changed files with 3 additions and 2 deletions
|
@ -942,9 +942,10 @@ if( ( $submit || $confirm || $mode == "delete" ) && !$error )
|
||||||
$sql .= ", forum_topics = forum_topics + 1";
|
$sql .= ", forum_topics = forum_topics + 1";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$sql .= " WHERE forum_id = $forum_id";
|
||||||
|
|
||||||
/* if( $topic_type != POST_GLOBAL_ANNOUNCE )
|
/* if( $topic_type != POST_GLOBAL_ANNOUNCE )
|
||||||
{
|
{
|
||||||
$sql .= " WHERE forum_id = $forum_id";
|
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
if($db->sql_query($sql))
|
if($db->sql_query($sql))
|
||||||
|
@ -2255,7 +2256,7 @@ if( $mode == 'newtopic' || ( $mode == 'editpost' && $is_first_post_topic ) )
|
||||||
|
|
||||||
if( $userdata['user_level'] == ADMIN )
|
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 )
|
if( $topic_type == POST_GLOBAL_ANNOUNCE )
|
||||||
{
|
{
|
||||||
$global_announce_toggle .= ' checked="checked"';
|
$global_announce_toggle .= ' checked="checked"';
|
||||||
|
|
Loading…
Add table
Reference in a new issue