Clean code

This commit is contained in:
Laurent Destailleur
2025-11-17 19:35:10 +01:00
parent 10921598cb
commit 1abc87ff03
7 changed files with 22 additions and 11 deletions

View File

@@ -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
*