mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-16 00:08:53 +00:00
Merge branch '3.3.x'
This commit is contained in:
commit
7f8182fbb5
3 changed files with 67 additions and 48 deletions
|
@ -146,7 +146,9 @@
|
||||||
{styles_list.EXTRA}
|
{styles_list.EXTRA}
|
||||||
<td class="{$ROW_CLASS} mark" width="20">
|
<td class="{$ROW_CLASS} mark" width="20">
|
||||||
<!-- IF styles_list.STYLE_ID -->
|
<!-- IF styles_list.STYLE_ID -->
|
||||||
|
{% if styles_list.STYLE_NAME !== 'prosilver' %}
|
||||||
<input class="checkbox" type="checkbox" name="ids[]" value="{styles_list.STYLE_ID}" />
|
<input class="checkbox" type="checkbox" name="ids[]" value="{styles_list.STYLE_ID}" />
|
||||||
|
{% endif %}
|
||||||
<!-- ELSE -->
|
<!-- ELSE -->
|
||||||
<!-- IF styles_list.COMMENT != '' -->
|
<!-- IF styles_list.COMMENT != '' -->
|
||||||
|
|
||||||
|
|
|
@ -259,6 +259,19 @@ class acp_styles
|
||||||
// Get list of styles to uninstall
|
// Get list of styles to uninstall
|
||||||
$ids = $this->request_vars('id', 0, true);
|
$ids = $this->request_vars('id', 0, true);
|
||||||
|
|
||||||
|
// Don't remove prosilver, you can still deactivate it.
|
||||||
|
$sql = 'SELECT style_id
|
||||||
|
FROM ' . STYLES_TABLE . "
|
||||||
|
WHERE style_name = '" . $this->db->sql_escape('prosilver') . "'";
|
||||||
|
$result = $this->db->sql_query($sql);
|
||||||
|
$prosilver_id = (int) $this->db->sql_fetchfield('style_id');
|
||||||
|
$this->db->sql_freeresult($result);
|
||||||
|
|
||||||
|
if ($prosilver_id && in_array($prosilver_id, $ids))
|
||||||
|
{
|
||||||
|
trigger_error($this->user->lang('UNINSTALL_PROSILVER') . adm_back_link($this->u_action), E_USER_WARNING);
|
||||||
|
}
|
||||||
|
|
||||||
// Check if confirmation box was submitted
|
// Check if confirmation box was submitted
|
||||||
if (confirm_box(true))
|
if (confirm_box(true))
|
||||||
{
|
{
|
||||||
|
@ -998,11 +1011,14 @@ class acp_styles
|
||||||
'L_ACTION' => $this->user->lang['EXPORT']
|
'L_ACTION' => $this->user->lang['EXPORT']
|
||||||
); */
|
); */
|
||||||
|
|
||||||
|
if ($style['style_name'] !== 'prosilver')
|
||||||
|
{
|
||||||
// Uninstall
|
// Uninstall
|
||||||
$actions[] = array(
|
$actions[] = array(
|
||||||
'U_ACTION' => $this->u_action . '&action=uninstall&hash=' . generate_link_hash('uninstall') . '&id=' . $style['style_id'],
|
'U_ACTION' => $this->u_action . '&action=uninstall&hash=' . generate_link_hash('uninstall') . '&id=' . $style['style_id'],
|
||||||
'L_ACTION' => $this->user->lang['STYLE_UNINSTALL']
|
'L_ACTION' => $this->user->lang['STYLE_UNINSTALL']
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// Preview
|
// Preview
|
||||||
$actions[] = array(
|
$actions[] = array(
|
||||||
|
|
|
@ -21,7 +21,7 @@ if (!defined('IN_PHPBB'))
|
||||||
|
|
||||||
if (empty($lang) || !is_array($lang))
|
if (empty($lang) || !is_array($lang))
|
||||||
{
|
{
|
||||||
$lang = array();
|
$lang = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
// DEVELOPERS PLEASE NOTE
|
// DEVELOPERS PLEASE NOTE
|
||||||
|
@ -36,8 +36,8 @@ if (empty($lang) || !is_array($lang))
|
||||||
// equally where a string contains only two placeholders which are used to wrap text
|
// equally where a string contains only two placeholders which are used to wrap text
|
||||||
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
|
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
|
||||||
|
|
||||||
$lang = array_merge($lang, array(
|
$lang = array_merge($lang, [
|
||||||
'ACP_STYLES_EXPLAIN' => 'Here you can manage the available styles on your board. You may alter existing styles, delete, deactivate, reactivate, install new ones. You can also see what a style will look like using the preview function. Also listed is the total user count for each style, note that overriding user styles will not be reflected here.',
|
'ACP_STYLES_EXPLAIN' => 'Here you can manage the styles available on your board.<br>Please note you cannot uninstall the “<strong>prosilver</strong>” style as it is phpBB’s default and primary parent style.',
|
||||||
|
|
||||||
'CANNOT_BE_INSTALLED' => 'Cannot be installed',
|
'CANNOT_BE_INSTALLED' => 'Cannot be installed',
|
||||||
'CONFIRM_UNINSTALL_STYLES' => 'Are you sure you wish to uninstall selected styles?',
|
'CONFIRM_UNINSTALL_STYLES' => 'Are you sure you wish to uninstall selected styles?',
|
||||||
|
@ -52,7 +52,7 @@ $lang = array_merge($lang, array(
|
||||||
'INHERITING_FROM' => 'Inherits from',
|
'INHERITING_FROM' => 'Inherits from',
|
||||||
'INSTALL_STYLE' => 'Install style',
|
'INSTALL_STYLE' => 'Install style',
|
||||||
'INSTALL_STYLES' => 'Install styles',
|
'INSTALL_STYLES' => 'Install styles',
|
||||||
'INSTALL_STYLES_EXPLAIN' => 'Here you can install new styles.<br />If you cannot find a specific style in list below, check to make sure style is already installed. If it is not installed, check if it was uploaded correctly.',
|
'INSTALL_STYLES_EXPLAIN' => 'Here you can install new styles.<br>If you cannot find a specific style in list below, check to make sure style is already installed. If it is not installed, check if it was uploaded correctly.',
|
||||||
'INVALID_STYLE_ID' => 'Invalid style ID.',
|
'INVALID_STYLE_ID' => 'Invalid style ID.',
|
||||||
|
|
||||||
'NO_MATCHING_STYLES_FOUND' => 'No styles match your query.',
|
'NO_MATCHING_STYLES_FOUND' => 'No styles match your query.',
|
||||||
|
@ -84,7 +84,8 @@ $lang = array_merge($lang, array(
|
||||||
'STYLE_USED_BY' => 'Used by (including robots)',
|
'STYLE_USED_BY' => 'Used by (including robots)',
|
||||||
'STYLE_VERSION' => 'Style version',
|
'STYLE_VERSION' => 'Style version',
|
||||||
|
|
||||||
|
'UNINSTALL_PROSILVER' => 'You cannot uninstall the style “prosilver”.',
|
||||||
'UNINSTALL_DEFAULT' => 'You cannot uninstall the default style.',
|
'UNINSTALL_DEFAULT' => 'You cannot uninstall the default style.',
|
||||||
|
|
||||||
'BROWSE_STYLES_DATABASE' => 'Browse styles database',
|
'BROWSE_STYLES_DATABASE' => 'Browse styles database',
|
||||||
));
|
]);
|
||||||
|
|
Loading…
Add table
Reference in a new issue