aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_styles.php
diff options
context:
space:
mode:
authorVjacheslav Trushkin <arty@phpbb.com>2012-03-31 17:04:17 +0300
committerVjacheslav Trushkin <arty@phpbb.com>2012-03-31 17:04:17 +0300
commit961199755200668790b243447eac6bf3374b0bb6 (patch)
tree731b121f7ea48d23e8e6861a934871895a442b45 /phpBB/includes/acp/acp_styles.php
parentbc46cfd6e5a6dd0a759c610e4654a7fad47db130 (diff)
downloadforums-961199755200668790b243447eac6bf3374b0bb6.tar
forums-961199755200668790b243447eac6bf3374b0bb6.tar.gz
forums-961199755200668790b243447eac6bf3374b0bb6.tar.bz2
forums-961199755200668790b243447eac6bf3374b0bb6.tar.xz
forums-961199755200668790b243447eac6bf3374b0bb6.zip
[feature/merging-style-components] Fixing few errors in acp_styles
Fixing notices and usability issues PHPBB3-10632
Diffstat (limited to 'phpBB/includes/acp/acp_styles.php')
-rw-r--r--phpBB/includes/acp/acp_styles.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/phpBB/includes/acp/acp_styles.php b/phpBB/includes/acp/acp_styles.php
index 123725ef1d..5ff79b0c19 100644
--- a/phpBB/includes/acp/acp_styles.php
+++ b/phpBB/includes/acp/acp_styles.php
@@ -181,10 +181,6 @@ class acp_styles
trigger_error($user->lang['NO_MATCHING_STYLES_FOUND'] . adm_back_link($this->u_action), E_USER_WARNING);
}
$message = implode('<br />', $messages);
- if (count($messages) == 1 && $last_installed !== false)
- {
- $message .= '<br /><br />' . sprintf($user->lang['STYLE_INSTALLED_EDIT_DETAILS'], $this->u_base_action . '&amp;mode=style&amp;action=details&amp;id=' . $last_installed);
- }
$message .= '<br /><br />' . sprintf($user->lang['STYLE_INSTALLED_RETURN_STYLES'], $this->u_base_action . '&amp;mode=style');
$message .= '<br /><br />' . sprintf($user->lang['STYLE_INSTALLED_RETURN_UNINSTALLED'], $this->u_base_action . '&amp;mode=install');
trigger_error($message, E_USER_NOTICE);
@@ -556,7 +552,6 @@ class acp_styles
$users = $this->get_users();
// Add users counter to rows
- $style['_users'] = array();
foreach ($styles as &$style)
{
$style['_users'] = isset($users[$style['style_id']]) ? $users[$style['style_id']] : 0;
@@ -892,7 +887,7 @@ class acp_styles
// Additional data
'DEFAULT' => ($style['style_id'] && $style['style_id'] == $config['default_style']),
- 'USERS' => $style['_users'],
+ 'USERS' => (isset($style['_users'])) ? $style['_users'] : '',
'LEVEL' => $level,
'PADDING' => (4 + 16 * $level),
'SHOW_COPYRIGHT' => ($style['style_id']) ? false : true,