';
}
// Le type de l'element (pour les type de contact).'
diff --git a/htdocs/admin/ihm.php b/htdocs/admin/ihm.php
index 4c8a745e0ed..2dcb127ebaf 100644
--- a/htdocs/admin/ihm.php
+++ b/htdocs/admin/ihm.php
@@ -124,7 +124,7 @@ if (isset($_GET["action"]) && $_GET["action"] == 'edit') // Edit
// Default language
$var=!$var;
print '
';
diff --git a/htdocs/core/class/html.formadmin.class.php b/htdocs/core/class/html.formadmin.class.php
index 0bb21f1c57c..60544b727db 100644
--- a/htdocs/core/class/html.formadmin.class.php
+++ b/htdocs/core/class/html.formadmin.class.php
@@ -44,14 +44,15 @@ class FormAdmin
return 1;
}
-
+
/**
- * \brief Retourne la liste deroulante des langues disponibles
- * \param selected Langue pre-selectionnee
- * \param htmlname Nom de la zone select
- * \param showauto Affiche choix auto
- * \param filter Array of keys to exclude in list
- * \param showempty Add empty value
+ * Output list with available languages.
+ * @deprecated Use select_language instead
+ * @param selected Langue pre-selectionnee
+ * @param htmlname Nom de la zone select
+ * @param showauto Affiche choix auto
+ * @param filter Array of keys to exclude in list
+ * @param showempty Add empty value
*/
function select_lang($selected='',$htmlname='lang_id',$showauto=0,$filter=0,$showempty=0)
{
@@ -59,19 +60,19 @@ class FormAdmin
}
/**
- * \brief Retourne la liste deroulante des langues disponibles
- * \param selected Langue pre-selectionnee
- * \param htmlname Nom de la zone select
- * \param showauto Affiche choix auto
- * \param filter Array of keys to exclude in list
- * \param showempty Add empty value
+ * Return html select list with available languages
+ * @param selected Langue pre-selectionnee
+ * @param htmlname Nom de la zone select
+ * @param showauto Affiche choix auto
+ * @param filter Array of keys to exclude in list
+ * @param showempty Add empty value
*/
function select_language($selected='',$htmlname='lang_id',$showauto=0,$filter=0,$showempty=0)
{
global $langs;
$langs_available=$langs->get_available_languages(DOL_DOCUMENT_ROOT,12);
-
+
$out='';
$out.= '';
-
+
return $out;
}
diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php
index f45460edd4d..93920175d4d 100644
--- a/htdocs/core/class/html.formfile.class.php
+++ b/htdocs/core/class/html.formfile.class.php
@@ -348,7 +348,7 @@ class FormFile
include_once(DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php');
$formadmin=new FormAdmin($this->db);
$defaultlang=$codelang?$codelang:$langs->getDefaultLang();
- $formadmin->select_lang($defaultlang);
+ print $formadmin->select_language($defaultlang);
}
else
{
diff --git a/htdocs/install/index.php b/htdocs/install/index.php
index 4644504aa1c..79f8a516259 100644
--- a/htdocs/install/index.php
+++ b/htdocs/install/index.php
@@ -60,7 +60,7 @@ print '';
print '