mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 01:28:19 +01:00
Clean code
This commit is contained in:
@@ -297,6 +297,17 @@ function getDolCurrency()
|
||||
return (string) $conf->currency;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the default context page string
|
||||
*
|
||||
* @param string $s Page path
|
||||
* @return string Value returned
|
||||
*/
|
||||
function getDolDefaultContextPage($s)
|
||||
{
|
||||
return str_replace('_', '', basename(dirname($s)).basename($s, '.php'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Return Dolibarr user constant string value
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user