aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_posting.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2003-08-28 17:32:18 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2003-08-28 17:32:18 +0000
commit964edc86936fba9f0729cc8930cc3a0c75b25998 (patch)
treec213179d6c4c359ccb38bd64b78884449c00fa40 /phpBB/includes/functions_posting.php
parent5b6e9931b3ecca5efc8087f7d9ee7254153b8d09 (diff)
downloadforums-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/includes/functions_posting.php')
-rw-r--r--phpBB/includes/functions_posting.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index a25c44f5e3..f06da1e412 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -38,7 +38,7 @@ function generate_smilies($mode)
);
}
- $sql = 'SELECT emoticon, code, smile_url, smile_width, smile_height
+ $sql = 'SELECT *
FROM ' . SMILIES_TABLE .
(($mode == 'inline') ? ' WHERE display_on_posting = 1 ' : '') . '
ORDER BY smile_order';