From edf843465562b3b318a89e4481903641c6ac85cf Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 2 Mar 2010 08:45:49 +0000 Subject: [PATCH] Rename function with a more english name. Remove duplicated "default" preselected parameter. --- htdocs/fichinter/fiche.php | 4 ++-- htdocs/html.form.class.php | 9 +++++---- htdocs/lib/project.lib.php | 2 +- htdocs/projet/tasks/time.php | 4 ++-- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/htdocs/fichinter/fiche.php b/htdocs/fichinter/fiche.php index d6c041b8b39..43c134d3996 100644 --- a/htdocs/fichinter/fiche.php +++ b/htdocs/fichinter/fiche.php @@ -780,7 +780,7 @@ elseif ($fichinterid) // Duration print ''; - $html->select_duree('duration',$objp->duree); + $html->select_duration('duration',$objp->duree); print ''; print ''; @@ -844,7 +844,7 @@ elseif ($fichinterid) // Duration print ''; - $html->select_duree('duration'); + $html->select_duration('duration',3600); print ''; print ''; diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index ec41cba5948..0da2fbef902 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -2548,11 +2548,12 @@ class Form } /** - * \brief Fonction servant a afficher une duree dans une liste deroulante + * \brief Function to show a form to select a duration on a page * \param prefix prefix - * \param iSecond Nombre de secondes + * \param iSecond Default preselected duration (number of seconds) + * \param disabled Disable the combo box */ - function select_duree($prefix,$iSecond='',$default=1,$disabled=0) + function select_duration($prefix,$iSecond='',$disabled=0) { if ($iSecond) { @@ -2566,7 +2567,7 @@ class Form for ($hour = 0; $hour < 24; $hour++) { print '