diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2003-08-28 17:32:18 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2003-08-28 17:32:18 +0000 |
| commit | 964edc86936fba9f0729cc8930cc3a0c75b25998 (patch) | |
| tree | c213179d6c4c359ccb38bd64b78884449c00fa40 /phpBB/posting.php | |
| parent | 5b6e9931b3ecca5efc8087f7d9ee7254153b8d09 (diff) | |
| download | forums-964edc86936fba9f0729cc8930cc3a0c75b25998.tar forums-964edc86936fba9f0729cc8930cc3a0c75b25998.tar.gz forums-964edc86936fba9f0729cc8930cc3a0c75b25998.tar.bz2 forums-964edc86936fba9f0729cc8930cc3a0c75b25998.tar.xz forums-964edc86936fba9f0729cc8930cc3a0c75b25998.zip | |
saved one query by moving max smilie check to the emoticons function
git-svn-id: file:///svn/phpbb/trunk@4451 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
| -rw-r--r-- | phpBB/posting.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index 28dc49a8a4..0fdf3bf7b6 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -521,7 +521,7 @@ if ($submit || $preview || $refresh) // Faster than crc32 - $check_value = (($enable_html+1) << 16) + (($enable_bbcode+1) << 8) + (($enable_smilies+1) << 4) + (($enable_urls+1) << 2) + (($enable_sig+1) << 1); + $check_value = (($preview || $refresh) && isset($_POST['status_switch'])) ? intval($_POST['status_switch']) : (($enable_html+1) << 16) + (($enable_bbcode+1) << 8) + (($enable_smilies+1) << 4) + (($enable_urls+1) << 2) + (($enable_sig+1) << 1); $status_switch = (isset($_POST['status_switch']) && intval($_POST['status_switch']) != $check_value) ? true : false; |
