mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-09 11:08:34 +01:00
doxygen
This commit is contained in:
@@ -3952,7 +3952,7 @@ function info_admin($text, $infoonimgalt = 0, $nodiv = 0, $admin = '1', $morecss
|
||||
* However, one must try to call it only within php pages, classes must return their error through their property "error".
|
||||
*
|
||||
* @param DoliDB $db Database handler
|
||||
* @param mixed $error String or array of errors strings to show
|
||||
* @param string|[string] $error String or array of errors strings to show
|
||||
* @param array $errors Array of errors
|
||||
* @return void
|
||||
* @see dol_htmloutput_errors()
|
||||
@@ -6691,7 +6691,7 @@ function dolGetFirstLastname($firstname, $lastname, $nameorder = -1)
|
||||
* Note: Calling dol_htmloutput_events is done into pages by standard llxFooter() function.
|
||||
* Note: Prefer to use setEventMessages instead.
|
||||
*
|
||||
* @param mixed $mesgs Message string or array
|
||||
* @param string|[string] $mesgs Message string or array
|
||||
* @param string $style Which style to use ('mesgs' by default, 'warnings', 'errors')
|
||||
* @return void
|
||||
* @see dol_htmloutput_events()
|
||||
@@ -6699,11 +6699,11 @@ function dolGetFirstLastname($firstname, $lastname, $nameorder = -1)
|
||||
function setEventMessage($mesgs, $style = 'mesgs')
|
||||
{
|
||||
//dol_syslog(__FUNCTION__ . " is deprecated", LOG_WARNING); This is not deprecated, it is used by setEventMessages function
|
||||
if (!is_array($mesgs)) // If mesgs is a string
|
||||
{
|
||||
if (!is_array($mesgs)) {
|
||||
// If mesgs is a string
|
||||
if ($mesgs) $_SESSION['dol_events'][$style][] = $mesgs;
|
||||
} else // If mesgs is an array
|
||||
{
|
||||
} else {
|
||||
// If mesgs is an array
|
||||
foreach ($mesgs as $mesg)
|
||||
{
|
||||
if ($mesg) $_SESSION['dol_events'][$style][] = $mesg;
|
||||
|
||||
Reference in New Issue
Block a user