mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
#12433 (attention: new language variable which *will* give php notices for those using a language pack not having this added variable)
git-svn-id: file:///svn/phpbb/trunk@7766 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
88af4b93ea
commit
27c082d99c
3 changed files with 6 additions and 4 deletions
|
@ -277,6 +277,7 @@ p a {
|
|||
<li>[Fix] Order forums on role permission mask (Bug #12337)</li>
|
||||
<li>[Fix] Show "no image" image when a non-selectable item was selected in the acp imageset editor - IE (Bug #12423)</li>
|
||||
<li>[Fix] Update session information without new pageload (Bug #12393, Bug #12441)</li>
|
||||
<li>[Fix] Let polls be edited correctly (Bug #12433)</li>
|
||||
|
||||
</ul>
|
||||
|
||||
|
|
|
@ -144,6 +144,7 @@ $lang = array_merge($lang, array(
|
|||
'POLL_MAX_OPTIONS_EXPLAIN' => 'This is the number of options each user may select when voting.',
|
||||
'POLL_OPTIONS' => 'Poll options',
|
||||
'POLL_OPTIONS_EXPLAIN' => 'Place each option on a new line. You may enter up to <strong>%d</strong> options.',
|
||||
'POLL_OPTIONS_EDIT_EXPLAIN' => 'Place each option on a new line. You may enter up to <strong>%d</strong> options. If you remove or add options all previous votes will be reset.',
|
||||
'POLL_QUESTION' => 'Poll question',
|
||||
'POLL_TITLE_TOO_LONG' => 'The poll title must contain fewer than 100 characters.',
|
||||
'POLL_TITLE_COMP_TOO_LONG' => 'The parsed size of your poll title is too large, consider removing BBCodes or smilies.',
|
||||
|
|
|
@ -753,7 +753,7 @@ if ($submit || $preview || $refresh)
|
|||
$post_data['poll_last_vote'] = (isset($post_data['poll_last_vote'])) ? $post_data['poll_last_vote'] : 0;
|
||||
|
||||
if ($post_data['poll_option_text'] &&
|
||||
($mode == 'post' || ($mode == 'edit' && $post_id == $post_data['topic_first_post_id'] && (!$post_data['poll_last_vote'] || $auth->acl_get('m_edit', $forum_id))))
|
||||
($mode == 'post' || ($mode == 'edit' && $post_id == $post_data['topic_first_post_id']/* && (!$post_data['poll_last_vote'] || $auth->acl_get('m_edit', $forum_id))*/))
|
||||
&& $auth->acl_get('f_poll', $forum_id))
|
||||
{
|
||||
$poll = array(
|
||||
|
@ -1028,7 +1028,7 @@ if (!sizeof($error) && $preview)
|
|||
$preview_subject = censor_text($post_data['post_subject']);
|
||||
|
||||
// Poll Preview
|
||||
if (!$poll_delete && ($mode == 'post' || ($mode == 'edit' && $post_id == $post_data['topic_first_post_id'] && (!$post_data['poll_last_vote'] || $auth->acl_get('m_edit', $forum_id))))
|
||||
if (!$poll_delete && ($mode == 'post' || ($mode == 'edit' && $post_id == $post_data['topic_first_post_id']/* && (!$post_data['poll_last_vote'] || $auth->acl_get('m_edit', $forum_id))*/))
|
||||
&& $auth->acl_get('f_poll', $forum_id))
|
||||
{
|
||||
$parse_poll = new parse_message($post_data['poll_title']);
|
||||
|
@ -1309,7 +1309,7 @@ $template->assign_vars(array(
|
|||
display_custom_bbcodes();
|
||||
|
||||
// Poll entry
|
||||
if (($mode == 'post' || ($mode == 'edit' && $post_id == $post_data['topic_first_post_id'] && (!$post_data['poll_last_vote'] || $auth->acl_get('m_edit', $forum_id))))
|
||||
if (($mode == 'post' || ($mode == 'edit' && $post_id == $post_data['topic_first_post_id']/* && (!$post_data['poll_last_vote'] || $auth->acl_get('m_edit', $forum_id))*/))
|
||||
&& $auth->acl_get('f_poll', $forum_id))
|
||||
{
|
||||
$template->assign_vars(array(
|
||||
|
@ -1318,7 +1318,7 @@ if (($mode == 'post' || ($mode == 'edit' && $post_id == $post_data['topic_first_
|
|||
'S_POLL_DELETE' => ($mode == 'edit' && sizeof($post_data['poll_options']) && ((!$post_data['poll_last_vote'] && $post_data['poster_id'] == $user->data['user_id'] && $auth->acl_get('f_delete', $forum_id)) || $auth->acl_get('m_delete', $forum_id))),
|
||||
'S_POLL_DELETE_CHECKED' => (!empty($poll_delete)) ? true : false,
|
||||
|
||||
'L_POLL_OPTIONS_EXPLAIN' => sprintf($user->lang['POLL_OPTIONS_EXPLAIN'], $config['max_poll_options']),
|
||||
'L_POLL_OPTIONS_EXPLAIN' => sprintf($user->lang['POLL_OPTIONS_' . (($mode == 'edit') ? 'EDIT_' : '') . 'EXPLAIN'], $config['max_poll_options']),
|
||||
|
||||
'VOTE_CHANGE_CHECKED' => (!empty($post_data['poll_vote_change'])) ? ' checked="checked"' : '',
|
||||
'POLL_TITLE' => (isset($post_data['poll_title'])) ? $post_data['poll_title'] : '',
|
||||
|
|
Loading…
Add table
Reference in a new issue