aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-10-16 17:15:25 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-10-16 17:15:25 +0000
commit7285487e5bdc0b28e1868056683ac57b31c3e027 (patch)
tree8cad1afcca83ee4bb37af57733d42f5ef631e768 /phpBB/posting.php
parentcd37bbc65716ba4539c9cdc3860b1c81ed6d583f (diff)
downloadforums-7285487e5bdc0b28e1868056683ac57b31c3e027.tar
forums-7285487e5bdc0b28e1868056683ac57b31c3e027.tar.gz
forums-7285487e5bdc0b28e1868056683ac57b31c3e027.tar.bz2
forums-7285487e5bdc0b28e1868056683ac57b31c3e027.tar.xz
forums-7285487e5bdc0b28e1868056683ac57b31c3e027.zip
Fix a few things left over from old global announce stuff
git-svn-id: file:///svn/phpbb/trunk@1230 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 5cbac0cca7..a6fdb1436d 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -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"';