aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2007-01-05 21:17:28 +0000
committerNils Adermann <naderman@naderman.de>2007-01-05 21:17:28 +0000
commitce13b9b9963b2d11bae2eca26560b1f74bd5505f (patch)
treeb0ff589bf29acf71ef4c953531af1ee385f8b089 /phpBB/includes/functions.php
parent77335d94e4258112a69b5484a3006233c7550630 (diff)
downloadforums-ce13b9b9963b2d11bae2eca26560b1f74bd5505f.tar
forums-ce13b9b9963b2d11bae2eca26560b1f74bd5505f.tar.gz
forums-ce13b9b9963b2d11bae2eca26560b1f74bd5505f.tar.bz2
forums-ce13b9b9963b2d11bae2eca26560b1f74bd5505f.tar.xz
forums-ce13b9b9963b2d11bae2eca26560b1f74bd5505f.zip
- use constants no weird numbers ;-)
- solved problem with \w using UTF-8 search (fulltext_mysql) by using PCRE unicode character properties if available [Bug #5768] git-svn-id: file:///svn/phpbb/trunk@6843 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 42046ff265..e4abcc6cc7 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -2338,7 +2338,7 @@ function generate_text_for_storage(&$text, &$uid, &$bitfield, &$flags, $allow_bb
$uid = '';
}
- $flags = (($allow_bbcode) ? 1 : 0) + (($allow_smilies) ? 2 : 0) + (($allow_urls) ? 4 : 0);
+ $flags = (($allow_bbcode) ? OPTION_FLAG_BBCODE : 0) + (($allow_smilies) ? OPTION_FLAG_SMILIES : 0) + (($allow_urls) ? OPTION_FLAG_LINKS : 0);
$bitfield = $message_parser->bbcode_bitfield;
return;