mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge branch '3.2.x'
This commit is contained in:
commit
d77c018d7f
1 changed files with 5 additions and 0 deletions
|
@ -1192,6 +1192,11 @@ if ($submit || $preview || $refresh)
|
||||||
{
|
{
|
||||||
// We have a poll but the editing user is not permitted to create/edit it.
|
// We have a poll but the editing user is not permitted to create/edit it.
|
||||||
// So we just keep the original poll-data.
|
// So we just keep the original poll-data.
|
||||||
|
// Decode the poll title and options text fisrt.
|
||||||
|
$original_poll_data['poll_title'] = $bbcode_utils->unparse($original_poll_data['poll_title']);
|
||||||
|
$original_poll_data['poll_option_text'] = $bbcode_utils->unparse($original_poll_data['poll_option_text']);
|
||||||
|
$original_poll_data['poll_options'] = explode("\n", $original_poll_data['poll_option_text']);
|
||||||
|
|
||||||
$poll = array_merge($original_poll_data, array(
|
$poll = array_merge($original_poll_data, array(
|
||||||
'enable_bbcode' => $post_data['enable_bbcode'],
|
'enable_bbcode' => $post_data['enable_bbcode'],
|
||||||
'enable_urls' => $post_data['enable_urls'],
|
'enable_urls' => $post_data['enable_urls'],
|
||||||
|
|
Loading…
Add table
Reference in a new issue