aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorJoshyPHP <s9e.dev@gmail.com>2015-06-01 02:24:48 +0200
committerJoshyPHP <s9e.dev@gmail.com>2015-06-01 02:24:48 +0200
commiteb227977d27839bb0e2f1826084e00b667659e25 (patch)
treea5d0a966476445265838b5b676404bdc5c2fdadf /phpBB
parentc0972f74ca3c8ce949ecc9e9471755b84a3fe492 (diff)
downloadforums-eb227977d27839bb0e2f1826084e00b667659e25.tar
forums-eb227977d27839bb0e2f1826084e00b667659e25.tar.gz
forums-eb227977d27839bb0e2f1826084e00b667659e25.tar.bz2
forums-eb227977d27839bb0e2f1826084e00b667659e25.tar.xz
forums-eb227977d27839bb0e2f1826084e00b667659e25.zip
[ticket/13906] Fixed old signatures in post preview
PHPBB3-13906
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/posting.php13
1 files changed, 5 insertions, 8 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 1c7b756fc2..5b0e3d1da6 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -1487,14 +1487,11 @@ if (!sizeof($error) && $preview)
// Signature
if ($post_data['enable_sig'] && $config['allow_sig'] && $preview_signature && $auth->acl_get('f_sigs', $forum_id))
{
- $parse_sig = new parse_message($preview_signature);
- $parse_sig->bbcode_uid = $preview_signature_uid;
- $parse_sig->bbcode_bitfield = $preview_signature_bitfield;
-
- // Not sure about parameters for bbcode/smilies/urls... in signatures
- $parse_sig->format_display($config['allow_sig_bbcode'], $config['allow_sig_links'], $config['allow_sig_smilies']);
- $preview_signature = $parse_sig->message;
- unset($parse_sig);
+ $flags = ($config['allow_sig_bbcode']) ? OPTION_FLAG_BBCODE : 0;
+ $flags |= ($config['allow_sig_links']) ? OPTION_FLAG_LINKS : 0;
+ $flags |= ($config['allow_sig_smilies']) ? OPTION_FLAG_SMILIES : 0;
+
+ $preview_signature = generate_text_for_display($preview_signature, $preview_signature_uid, $preview_signature_bitfield, $flags, false);
}
else
{