mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-06-28 06:58:43 +02:00
fix getTabNameForItem proto
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@163 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
@ -137,11 +137,10 @@ class PluginExampleExample extends CommonDBTM {
|
||||
}
|
||||
|
||||
|
||||
function getTabNameForItem(CommonGLPI $item) {
|
||||
function getTabNameForItem(CommonGLPI $item, $withtemplate=0) {
|
||||
global $LANG;
|
||||
|
||||
Toolbox::logDebug('getTabNameForItem', $item);
|
||||
if ($item->getID()) {
|
||||
if (!$withtemplate) {
|
||||
switch ($item->getType()) {
|
||||
case 'Phone' :
|
||||
if ($_SESSION['glpishow_count_on_tabs']) {
|
||||
|
Reference in New Issue
Block a user