From 8d2b254b72325ee9be722904bdde681cfa503a27 Mon Sep 17 00:00:00 2001 From: Stanislas Kita Date: Thu, 12 Mar 2026 09:24:54 +0100 Subject: [PATCH] Fix(UI): add missing icon and fix nad html entity --- inc/preference.class.php | 2 +- inc/profile.class.php | 2 +- inc/replace.class.php | 2 +- inc/uninstall.class.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/inc/preference.class.php b/inc/preference.class.php index 9d06a22..52afa9a 100644 --- a/inc/preference.class.php +++ b/inc/preference.class.php @@ -256,7 +256,7 @@ public function getTabNameForItem(CommonGLPI $item, $withtemplate = 0) { if ($item->getType() == 'Preference' && Session::haveRight('uninstall:profile', READ)) { - return PluginUninstallUninstall::getTypeName(); + return self::createTabEntry(PluginUninstallUninstall::getTypeName(), 0, $item::getType(), PluginUninstallReplace::getIcon()); } return ''; diff --git a/inc/profile.class.php b/inc/profile.class.php index 8048063..bc28ad4 100644 --- a/inc/profile.class.php +++ b/inc/profile.class.php @@ -181,7 +181,7 @@ public function getTabNameForItem(CommonGLPI $item, $withtemplate = 0) { if ($item instanceof Profile && $item->getField('interface') == 'central') { - return PluginUninstallUninstall::getTypeName(); + return self::createTabEntry(PluginUninstallUninstall::getTypeName(), 0, $item::getType(), PluginUninstallReplace::getIcon()); } return ''; diff --git a/inc/replace.class.php b/inc/replace.class.php index 6c533ee..d81d363 100644 --- a/inc/replace.class.php +++ b/inc/replace.class.php @@ -75,7 +75,7 @@ class PluginUninstallReplace extends CommonDBTM public static function getTypeName($nb = 0) { - return __s("Item's replacement", 'uninstall'); + return __("Item's replacement", 'uninstall'); } diff --git a/inc/uninstall.class.php b/inc/uninstall.class.php index c376539..cac884c 100644 --- a/inc/uninstall.class.php +++ b/inc/uninstall.class.php @@ -68,7 +68,7 @@ class PluginUninstallUninstall extends CommonDBTM public static function getTypeName($nb = 0) { - return __s("Item's Lifecycle", 'uninstall'); + return __("Item's Lifecycle", 'uninstall'); } /**