diff --git a/htdocs/core/lib/invoice.lib.php b/htdocs/core/lib/invoice.lib.php index 451ac0731ef..94eb4527b74 100644 --- a/htdocs/core/lib/invoice.lib.php +++ b/htdocs/core/lib/invoice.lib.php @@ -169,6 +169,12 @@ function invoice_admin_prepare_head() } +/** + * Return array head with list of tabs to view object informations. + * + * @param Facture $object Invoice object + * @return array head array with tabs + */ function invoice_rec_prepare_head($object) { global $db, $langs, $conf; diff --git a/htdocs/core/lib/security2.lib.php b/htdocs/core/lib/security2.lib.php index b6a348ea91d..8dacd4c5516 100644 --- a/htdocs/core/lib/security2.lib.php +++ b/htdocs/core/lib/security2.lib.php @@ -118,18 +118,18 @@ function checkLoginPassEntity($usertotest,$passwordtotest,$entitytotest,$authmod } -/** - * Show Dolibarr default login page. - * Part of this code is also duplicated into main.inc.php::top_htmlhead - * - * @param Translate $langs Lang object (must be initialized by a new). - * @param Conf $conf Conf object - * @param Societe $mysoc Company object - * @return void - */ if (! function_exists('dol_loginfunction')) { - function dol_loginfunction($langs,$conf,$mysoc) + /** + * Show Dolibarr default login page. + * Part of this code is also duplicated into main.inc.php::top_htmlhead + * + * @param Translate $langs Lang object (must be initialized by a new). + * @param Conf $conf Conf object + * @param Societe $mysoc Company object + * @return void + */ + function dol_loginfunction($langs,$conf,$mysoc) { global $dolibarr_main_demo,$db; global $smartphone,$hookmanager; @@ -510,4 +510,3 @@ function getRandomPassword($generic=false) return $generated_password; } -