From 622ff0617da0579975d7a395028c29d089f5c203 Mon Sep 17 00:00:00 2001 From: yllen Date: Fri, 16 Mar 2012 13:05:12 +0000 Subject: [PATCH] fix proto git-svn-id: https://forge.glpi-project.org/svn/example/trunk@190 349b9182-4a13-0410-896f-e5e9767dd1b3 --- inc/dropdown.class.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/inc/dropdown.class.php b/inc/dropdown.class.php index e8370ac..e0cdc53 100644 --- a/inc/dropdown.class.php +++ b/inc/dropdown.class.php @@ -36,9 +36,12 @@ class PluginExampleDropdown extends CommonDropdown { - static function getTypeName() { + static function getTypeName($nb=0) { - return __('Plugin Example Dropdown'); + if ($nb > 0) { + return __('Plugin Example Dropdowns'); + } + return __('Plugin Example Dropdowns'); } } ?>