mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-24 02:48:56 +00:00
[ticket/11638] Changed the layout to match the other similar commits
sub-task of ticket PHPBB3-11635: find and fix all bypasses of generate_text_for_* PHPBB3-11638
This commit is contained in:
parent
4cdccbd42b
commit
ccc5c5f6b8
1 changed files with 3 additions and 8 deletions
|
@ -828,19 +828,14 @@ if (!empty($topic_data['poll_start']))
|
|||
$poll_total += $poll_option['poll_option_total'];
|
||||
}
|
||||
|
||||
$parse_bbcode_flags = OPTION_FLAG_SMILIES;
|
||||
|
||||
if (empty($poll_info[0]['bbcode_bitfield']))
|
||||
{
|
||||
$parse_bbcode_flags |= OPTION_FLAG_BBCODE;
|
||||
}
|
||||
$parse_flags = ($row['bbcode_bitfield'] ? OPTION_FLAG_BBCODE : 0) | OPTION_FLAG_SMILIES;
|
||||
|
||||
for ($i = 0, $size = sizeof($poll_info); $i < $size; $i++)
|
||||
{
|
||||
$poll_info[$i]['poll_option_text'] = generate_text_for_display($poll_info[$i]['poll_option_text'], $poll_info[$i]['bbcode_uid'], $poll_option['bbcode_bitfield'], $parse_bbcode_flags, true);
|
||||
$poll_info[$i]['poll_option_text'] = generate_text_for_display($poll_info[$i]['poll_option_text'], $poll_info[$i]['bbcode_uid'], $poll_option['bbcode_bitfield'], $parse_flags, true);
|
||||
}
|
||||
|
||||
$topic_data['poll_title'] = generate_text_for_display($topic_data['poll_title'], $poll_info[0]['bbcode_uid'], $poll_info[0]['bbcode_bitfield'], $parse_bbcode_flags, true);
|
||||
$topic_data['poll_title'] = generate_text_for_display($topic_data['poll_title'], $poll_info[0]['bbcode_uid'], $poll_info[0]['bbcode_bitfield'], $parse_flags, true);
|
||||
|
||||
foreach ($poll_info as $poll_option)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue