diff options
author | Richard McGirr <rmcgirr83@gmail.com> | 2016-05-26 06:26:14 -0400 |
---|---|---|
committer | Richard McGirr <rmcgirr83@gmail.com> | 2016-05-26 06:26:14 -0400 |
commit | 7a8455baa7c24ca457e2f43a3c0384959dab7b28 (patch) | |
tree | e133eb34efb4153598cfe51cd33f020db4cdb90b /phpBB/includes/ucp/ucp_profile.php | |
parent | 3e88ea9c061c5f416077f54fa8f2675643a3219a (diff) | |
download | forums-7a8455baa7c24ca457e2f43a3c0384959dab7b28.tar forums-7a8455baa7c24ca457e2f43a3c0384959dab7b28.tar.gz forums-7a8455baa7c24ca457e2f43a3c0384959dab7b28.tar.bz2 forums-7a8455baa7c24ca457e2f43a3c0384959dab7b28.tar.xz forums-7a8455baa7c24ca457e2f43a3c0384959dab7b28.zip |
[ticket/14649] Add preview variable back to ucp_profile for event
PHPBB3-14649
Diffstat (limited to 'phpBB/includes/ucp/ucp_profile.php')
-rw-r--r-- | phpBB/includes/ucp/ucp_profile.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/includes/ucp/ucp_profile.php b/phpBB/includes/ucp/ucp_profile.php index c48df2c34d..64c49e17ac 100644 --- a/phpBB/includes/ucp/ucp_profile.php +++ b/phpBB/includes/ucp/ucp_profile.php @@ -470,6 +470,8 @@ class ucp_profile include($phpbb_root_path . 'includes/functions_posting.' . $phpEx); include($phpbb_root_path . 'includes/functions_display.' . $phpEx); + $preview = $request->is_set_post('preview'); + $enable_bbcode = ($config['allow_sig_bbcode']) ? $user->optionget('sig_bbcode') : false; $enable_smilies = ($config['allow_sig_smilies']) ? $user->optionget('sig_smilies') : false; $enable_urls = ($config['allow_sig_links']) ? $user->optionget('sig_links') : false; @@ -478,7 +480,7 @@ class ucp_profile $signature = $request->variable('signature', $decoded_message['text'], true); $signature_preview = ''; - if ($submit || $request->is_set_post('preview')) + if ($submit || $preview) { $enable_bbcode = ($config['allow_sig_bbcode']) ? !$request->variable('disable_bbcode', false) : false; $enable_smilies = ($config['allow_sig_smilies']) ? !$request->variable('disable_smilies', false) : false; |