mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
Merge branch '3.0.x' into 3.1.x
* 3.0.x: [ticket/13555] Render poll options separately when previewing.
This commit is contained in:
commit
499088b62f
1 changed files with 7 additions and 3 deletions
|
@ -1517,9 +1517,13 @@ if (!sizeof($error) && $preview)
|
|||
'L_MAX_VOTES' => $user->lang('MAX_OPTIONS_SELECT', (int) $post_data['poll_max_options']),
|
||||
));
|
||||
|
||||
$parse_poll->message = implode("\n", $post_data['poll_options']);
|
||||
$parse_poll->format_display($post_data['enable_bbcode'], $post_data['enable_urls'], $post_data['enable_smilies']);
|
||||
$preview_poll_options = explode('<br />', $parse_poll->message);
|
||||
$preview_poll_options = array();
|
||||
foreach ($post_data['poll_options'] as $poll_option)
|
||||
{
|
||||
$parse_poll->message = $poll_option;
|
||||
$parse_poll->format_display($post_data['enable_bbcode'], $post_data['enable_urls'], $post_data['enable_smilies']);
|
||||
$preview_poll_options[] = $parse_poll->message;
|
||||
}
|
||||
unset($parse_poll);
|
||||
|
||||
foreach ($preview_poll_options as $key => $option)
|
||||
|
|
Loading…
Add table
Reference in a new issue