diff options
author | Ludovic Arnaud <ludovic_arnaud@users.sourceforge.net> | 2003-10-05 20:05:58 +0000 |
---|---|---|
committer | Ludovic Arnaud <ludovic_arnaud@users.sourceforge.net> | 2003-10-05 20:05:58 +0000 |
commit | 86be90bc490dcbe1ed8c4cbea0a4c2589d218a1d (patch) | |
tree | 70fccbdc0fee04f8f9df79ce1269041108b62f64 | |
parent | 4b00d2ec2145d1b359d249457ab46f0c10154177 (diff) | |
download | forums-86be90bc490dcbe1ed8c4cbea0a4c2589d218a1d.tar forums-86be90bc490dcbe1ed8c4cbea0a4c2589d218a1d.tar.gz forums-86be90bc490dcbe1ed8c4cbea0a4c2589d218a1d.tar.bz2 forums-86be90bc490dcbe1ed8c4cbea0a4c2589d218a1d.tar.xz forums-86be90bc490dcbe1ed8c4cbea0a4c2589d218a1d.zip |
Asylum seekers ate my baby
git-svn-id: file:///svn/phpbb/trunk@4533 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/posting.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index 5eeae10773..7c8ab2cf39 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -365,6 +365,7 @@ $smilies_status = ($config['allow_smilies'] && $auth->acl_get('f_smilies', $foru $img_status = ($auth->acl_get('f_img', $forum_id)) ? TRUE : FALSE; //$flash_status = ($config['allow_flash'] && $auth->acl_get('f_flash', $forum_id)) ? TRUE : FALSE; $flash_status = ($auth->acl_get('f_flash', $forum_id)) ? TRUE : FALSE; +$quote_status = ($config['allow_quote'] && $auth->acl_get('f_quote', $forum_id)) ? TRUE : FALSE; // Save Draft @@ -1134,6 +1135,7 @@ function user_notification($mode, $subject, $forum_id, $topic_id, $post_id) // if ($topic_notification) { + // NOTE: potentially a lot of joins here. It's probably better to get topic_title and forum_name separately -- Ashe $sql = 'SELECT u.user_id, u.username, u.user_email, u.user_lang, t.topic_title, f.forum_name FROM ' . TOPICS_WATCH_TABLE . ' tw, ' . TOPICS_TABLE . ' t, ' . USERS_TABLE . ' u, ' . FORUMS_TABLE . " f WHERE tw.topic_id = $topic_id @@ -1145,6 +1147,7 @@ function user_notification($mode, $subject, $forum_id, $topic_id, $post_id) } else if ($newtopic_notification) { + // Same as above -- Ashe $sql = 'SELECT u.user_id, u.username, u.user_email, u.user_lang, f.forum_name FROM ' . USERS_TABLE . ' u, ' . FORUMS_WATCH_TABLE . ' fw, ' . FORUMS_TABLE . " f WHERE fw.forum_id = $forum_id |