2
0
forked from Wavyzz/dolibarr

Fix: Restore removed function because this break compatibility with external modules. Must first be deprecated and then deleted very later.

This commit is contained in:
Laurent Destailleur
2009-04-20 21:05:38 +00:00
parent 07965ce694
commit a88dd655bc

View File

@@ -1474,10 +1474,10 @@ function restrictedArea($user, $feature='societe', $objectid=0, $dbtablename='',
/**
\brief Affiche message erreur de type acces interdit et arrete le programme
\param message Force error message
\param printheader Affiche avant le header
\remarks L'appel a cette fonction termine le code.
* \brief Affiche message erreur de type acces interdit et arrete le programme
* \param message Force error message
* \param printheader Affiche avant le header
* \remarks L'appel a cette fonction termine le code.
*/
function accessforbidden($message='',$printheader=1)
{
@@ -1509,6 +1509,12 @@ function accessforbidden($message='',$printheader=1)
}
/* For backward compatibility */
function dolibarr_print_error($db='',$error='')
{
return dol_print_error($db, $error);
}
/**
* \brief Affiche message erreur system avec toutes les informations pour faciliter le diagnostic et la remont<6E>e des bugs.
* On doit appeler cette fonction quand une erreur technique bloquante est rencontree.