mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 12:28:52 +00:00
Merge branch '3.2.x'
This commit is contained in:
commit
8783ede6e0
4 changed files with 21 additions and 12 deletions
|
@ -912,6 +912,7 @@ function mcp_delete_topic($topic_ids, $is_soft = false, $soft_delete_reason = ''
|
||||||
'S_TOPIC_MODE' => true,
|
'S_TOPIC_MODE' => true,
|
||||||
'S_ALLOWED_DELETE' => $auth->acl_get('m_delete', $forum_id),
|
'S_ALLOWED_DELETE' => $auth->acl_get('m_delete', $forum_id),
|
||||||
'S_ALLOWED_SOFTDELETE' => $auth->acl_get('m_softdelete', $forum_id),
|
'S_ALLOWED_SOFTDELETE' => $auth->acl_get('m_softdelete', $forum_id),
|
||||||
|
'DELETE_TOPIC_PERMANENTLY_EXPLAIN' => $user->lang('DELETE_TOPIC_PERMANENTLY', sizeof($topic_ids)),
|
||||||
));
|
));
|
||||||
|
|
||||||
$l_confirm = (sizeof($topic_ids) == 1) ? 'DELETE_TOPIC' : 'DELETE_TOPICS';
|
$l_confirm = (sizeof($topic_ids) == 1) ? 'DELETE_TOPIC' : 'DELETE_TOPICS';
|
||||||
|
@ -1165,6 +1166,7 @@ function mcp_delete_post($post_ids, $is_soft = false, $soft_delete_reason = '',
|
||||||
'S_SOFTDELETED' => $only_softdeleted,
|
'S_SOFTDELETED' => $only_softdeleted,
|
||||||
'S_ALLOWED_DELETE' => $auth->acl_get('m_delete', $forum_id),
|
'S_ALLOWED_DELETE' => $auth->acl_get('m_delete', $forum_id),
|
||||||
'S_ALLOWED_SOFTDELETE' => $auth->acl_get('m_softdelete', $forum_id),
|
'S_ALLOWED_SOFTDELETE' => $auth->acl_get('m_softdelete', $forum_id),
|
||||||
|
'DELETE_POST_PERMANENTLY_EXPLAIN' => $user->lang('DELETE_POST_PERMANENTLY', sizeof($post_ids)),
|
||||||
));
|
));
|
||||||
|
|
||||||
$l_confirm = (sizeof($post_ids) == 1) ? 'DELETE_POST' : 'DELETE_POSTS';
|
$l_confirm = (sizeof($post_ids) == 1) ? 'DELETE_POST' : 'DELETE_POSTS';
|
||||||
|
|
|
@ -90,14 +90,20 @@ $lang = array_merge($lang, array(
|
||||||
'DELETE_PERMANENTLY' => 'Delete permanently',
|
'DELETE_PERMANENTLY' => 'Delete permanently',
|
||||||
'DELETE_POST_CONFIRM' => 'Are you sure you want to delete this post?',
|
'DELETE_POST_CONFIRM' => 'Are you sure you want to delete this post?',
|
||||||
'DELETE_POST_PERMANENTLY_CONFIRM' => 'Are you sure you want to <strong>permanently</strong> delete this post?',
|
'DELETE_POST_PERMANENTLY_CONFIRM' => 'Are you sure you want to <strong>permanently</strong> delete this post?',
|
||||||
'DELETE_POST_PERMANENTLY' => 'Permanently delete this post so it can not be recovered',
|
'DELETE_POST_PERMANENTLY' => array(
|
||||||
|
1 => 'Permanently delete this post so it can not be recovered',
|
||||||
|
2 => 'Permanently delete %1$d posts so they can not be recovered',
|
||||||
|
),
|
||||||
'DELETE_POSTS_CONFIRM' => 'Are you sure you want to delete these posts?',
|
'DELETE_POSTS_CONFIRM' => 'Are you sure you want to delete these posts?',
|
||||||
'DELETE_POSTS_PERMANENTLY_CONFIRM' => 'Are you sure you want to <strong>permanently</strong> delete these posts?',
|
'DELETE_POSTS_PERMANENTLY_CONFIRM' => 'Are you sure you want to <strong>permanently</strong> delete these posts?',
|
||||||
'DELETE_REASON' => 'Reason for deletion',
|
'DELETE_REASON' => 'Reason for deletion',
|
||||||
'DELETE_REASON_EXPLAIN' => 'The specified reason for deletion will be visible to moderators.',
|
'DELETE_REASON_EXPLAIN' => 'The specified reason for deletion will be visible to moderators.',
|
||||||
'DELETE_POST_WARN' => 'Delete this post',
|
'DELETE_POST_WARN' => 'Delete this post',
|
||||||
'DELETE_TOPIC_CONFIRM' => 'Are you sure you want to delete this topic?',
|
'DELETE_TOPIC_CONFIRM' => 'Are you sure you want to delete this topic?',
|
||||||
'DELETE_TOPIC_PERMANENTLY' => 'Permanently delete this topic so it can not be recovered',
|
'DELETE_TOPIC_PERMANENTLY' => array(
|
||||||
|
1 => 'Permanently delete this topic so it can not be recovered',
|
||||||
|
2 => 'Permanently delete %1$d topics so they can not be recovered',
|
||||||
|
),
|
||||||
'DELETE_TOPIC_PERMANENTLY_CONFIRM' => 'Are you sure you want to <strong>permanently</strong> delete this topic?',
|
'DELETE_TOPIC_PERMANENTLY_CONFIRM' => 'Are you sure you want to <strong>permanently</strong> delete this topic?',
|
||||||
'DELETE_TOPICS_CONFIRM' => 'Are you sure you want to delete these topics?',
|
'DELETE_TOPICS_CONFIRM' => 'Are you sure you want to delete these topics?',
|
||||||
'DELETE_TOPICS_PERMANENTLY_CONFIRM' => 'Are you sure you want to <strong>permanently</strong> delete these topics?',
|
'DELETE_TOPICS_PERMANENTLY_CONFIRM' => 'Are you sure you want to <strong>permanently</strong> delete these topics?',
|
||||||
|
|
|
@ -1756,6 +1756,7 @@ $page_data = array(
|
||||||
'L_POST_A' => $page_title,
|
'L_POST_A' => $page_title,
|
||||||
'L_ICON' => ($mode == 'reply' || $mode == 'quote' || ($mode == 'edit' && $post_id != $post_data['topic_first_post_id'])) ? $user->lang['POST_ICON'] : $user->lang['TOPIC_ICON'],
|
'L_ICON' => ($mode == 'reply' || $mode == 'quote' || ($mode == 'edit' && $post_id != $post_data['topic_first_post_id'])) ? $user->lang['POST_ICON'] : $user->lang['TOPIC_ICON'],
|
||||||
'L_MESSAGE_BODY_EXPLAIN' => $user->lang('MESSAGE_BODY_EXPLAIN', (int) $config['max_post_chars']),
|
'L_MESSAGE_BODY_EXPLAIN' => $user->lang('MESSAGE_BODY_EXPLAIN', (int) $config['max_post_chars']),
|
||||||
|
'L_DELETE_POST_PERMANENTLY' => $user->lang('DELETE_POST_PERMANENTLY', 1),
|
||||||
|
|
||||||
'FORUM_NAME' => $post_data['forum_name'],
|
'FORUM_NAME' => $post_data['forum_name'],
|
||||||
'FORUM_DESC' => ($post_data['forum_desc']) ? generate_text_for_display($post_data['forum_desc'], $post_data['forum_desc_uid'], $post_data['forum_desc_bitfield'], $post_data['forum_desc_options']) : '',
|
'FORUM_DESC' => ($post_data['forum_desc']) ? generate_text_for_display($post_data['forum_desc'], $post_data['forum_desc_uid'], $post_data['forum_desc_bitfield'], $post_data['forum_desc_options']) : '',
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<label>
|
<label>
|
||||||
<strong>{L_DELETE_PERMANENTLY}{L_COLON}</strong>
|
<strong>{L_DELETE_PERMANENTLY}{L_COLON}</strong>
|
||||||
<input id="delete_permanent" name="delete_permanent" type="checkbox" value="1" {S_CHECKED_PERMANENT} />
|
<input id="delete_permanent" name="delete_permanent" type="checkbox" value="1" {S_CHECKED_PERMANENT} />
|
||||||
<!-- IF S_TOPIC_MODE -->{L_DELETE_TOPIC_PERMANENTLY}<!-- ELSE -->{L_DELETE_POST_PERMANENTLY}<!-- ENDIF -->
|
<!-- IF S_TOPIC_MODE -->{DELETE_TOPIC_PERMANENTLY_EXPLAIN}<!-- ELSE -->{DELETE_POST_PERMANENTLY_EXPLAIN}<!-- ENDIF -->
|
||||||
</label>
|
</label>
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
<dd>
|
<dd>
|
||||||
<label for="delete_permanent">
|
<label for="delete_permanent">
|
||||||
<input id="delete_permanent" name="delete_permanent" type="checkbox" value="1" {S_CHECKED_PERMANENT} />
|
<input id="delete_permanent" name="delete_permanent" type="checkbox" value="1" {S_CHECKED_PERMANENT} />
|
||||||
<!-- IF S_TOPIC_MODE -->{L_DELETE_TOPIC_PERMANENTLY}<!-- ELSE -->{L_DELETE_POST_PERMANENTLY}<!-- ENDIF -->
|
<!-- IF S_TOPIC_MODE -->{DELETE_TOPIC_PERMANENTLY_EXPLAIN}<!-- ELSE -->{DELETE_POST_PERMANENTLY_EXPLAIN}<!-- ENDIF -->
|
||||||
</label>
|
</label>
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
|
Loading…
Add table
Reference in a new issue