Merge branch '13.0' of git@github.com:Dolibarr/dolibarr.git into 14.0
This commit is contained in:
commit
c4ca9e92a6
@ -65,6 +65,30 @@ function getDolGlobalInt($key)
|
|||||||
return (int) (empty($conf->global->$key) ? 0 : $conf->global->$key);
|
return (int) (empty($conf->global->$key) ? 0 : $conf->global->$key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return dolibarr global constant string value
|
||||||
|
* @param string $key key to return value, return '' if not set
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
function getDolGlobalString($key)
|
||||||
|
{
|
||||||
|
global $conf;
|
||||||
|
// return $conf->global->$key ?? '';
|
||||||
|
return (string) (empty($conf->global->$key) ? '' : $conf->global->$key);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return dolibarr global constant int value
|
||||||
|
* @param string $key key to return value, return 0 if not set
|
||||||
|
* @return int
|
||||||
|
*/
|
||||||
|
function getDolGlobalInt($key)
|
||||||
|
{
|
||||||
|
global $conf;
|
||||||
|
// return $conf->global->$key ?? 0;
|
||||||
|
return (int) (empty($conf->global->$key) ? 0 : $conf->global->$key);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return a DoliDB instance (database handler).
|
* Return a DoliDB instance (database handler).
|
||||||
*
|
*
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user