aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author3D-I <eataly3d@gmail.com>2019-08-13 06:07:54 +0200
committer3D-I <eataly3d@gmail.com>2019-08-13 06:08:25 +0200
commitaec25f24ae3cffadd91f7b1542ce632c27030e29 (patch)
treecb08e9884e2a1e348655e38ddd6af5ec199f5376
parent6cc16af75f007745454ab658ba29c366aab86150 (diff)
downloadforums-aec25f24ae3cffadd91f7b1542ce632c27030e29.tar
forums-aec25f24ae3cffadd91f7b1542ce632c27030e29.tar.gz
forums-aec25f24ae3cffadd91f7b1542ce632c27030e29.tar.bz2
forums-aec25f24ae3cffadd91f7b1542ce632c27030e29.tar.xz
forums-aec25f24ae3cffadd91f7b1542ce632c27030e29.zip
[ticket/16019] Get rid of the uninstall link
PHPBB3-16019
-rw-r--r--phpBB/includes/acp/acp_styles.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/phpBB/includes/acp/acp_styles.php b/phpBB/includes/acp/acp_styles.php
index 88878a9ce7..19d3add43e 100644
--- a/phpBB/includes/acp/acp_styles.php
+++ b/phpBB/includes/acp/acp_styles.php
@@ -1014,11 +1014,14 @@ class acp_styles
'L_ACTION' => $this->user->lang['EXPORT']
); */
- // Uninstall
- $actions[] = array(
- 'U_ACTION' => $this->u_action . '&amp;action=uninstall&amp;hash=' . generate_link_hash('uninstall') . '&amp;id=' . $style['style_id'],
- 'L_ACTION' => $this->user->lang['STYLE_UNINSTALL']
- );
+ if ($style['style_name'] !== 'prosilver')
+ {
+ // Uninstall
+ $actions[] = array(
+ 'U_ACTION' => $this->u_action . '&amp;action=uninstall&amp;hash=' . generate_link_hash('uninstall') . '&amp;id=' . $style['style_id'],
+ 'L_ACTION' => $this->user->lang['STYLE_UNINSTALL']
+ );
+ }
// Preview
$actions[] = array(