diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index f8949593e43..3f8f0f61efc 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -3659,7 +3659,7 @@ class Form * @param string $prefix prefix * @param int $iSecond Default preselected duration (number of seconds) * @param int $disabled Disable the combo box - * @param string $typehour if select then hour in select if text input in text + * @param string $typehour if 'select' then input hour is a combo select, if 'text' input is in text * @return void */ function select_duration($prefix,$iSecond='',$disabled=0,$typehour='select') diff --git a/htdocs/core/lib/project.lib.php b/htdocs/core/lib/project.lib.php index 3e257b1c4a6..5eec38ce265 100644 --- a/htdocs/core/lib/project.lib.php +++ b/htdocs/core/lib/project.lib.php @@ -75,7 +75,7 @@ function project_prepare_head($object) $head[$h][2] = 'notes'; $h++; } - + require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php'; $upload_dir = $conf->projet->dir_output . "/" . dol_sanitizeFileName($object->ref); $nbFiles = count(dol_dir_list($upload_dir,'files')); @@ -84,7 +84,7 @@ function project_prepare_head($object) if($nbFiles > 0) $head[$h][1].= ' ('.$nbFiles.')'; $head[$h][2] = 'document'; $h++; - + // Then tab for sub level of projet, i mean tasks $head[$h][0] = DOL_URL_ROOT.'/projet/tasks.php?id='.$object->id; $head[$h][1] = $langs->trans("Tasks"); @@ -494,7 +494,7 @@ function projectLinesb(&$inc, $parent, $lines, &$level, &$projectsrole, &$tasksr print '