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:
remicollet 2011-08-08 13:02:34 +00:00
parent 2c9d41dda2
commit 3741f8508b

View File

@ -137,11 +137,10 @@ class PluginExampleExample extends CommonDBTM {
} }
function getTabNameForItem(CommonGLPI $item) { function getTabNameForItem(CommonGLPI $item, $withtemplate=0) {
global $LANG; global $LANG;
Toolbox::logDebug('getTabNameForItem', $item); if (!$withtemplate) {
if ($item->getID()) {
switch ($item->getType()) { switch ($item->getType()) {
case 'Phone' : case 'Phone' :
if ($_SESSION['glpishow_count_on_tabs']) { if ($_SESSION['glpishow_count_on_tabs']) {