mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-02 08:09:19 +08:00
[Legacy] Add endsWith function
This commit is contained in:
parent
e9166c941d
commit
e8883ab507
1 changed files with 6 additions and 0 deletions
|
@ -6353,3 +6353,9 @@ function getCurrencyId($module, $id)
|
|||
global $locale;
|
||||
return BeanFactory::getBean($module, $id)->currency_id ?? $locale->getPrecedentPreference('currency');
|
||||
}
|
||||
|
||||
if (!function_exists('endsWith')) {
|
||||
function endsWith($str, $end) {
|
||||
return (@substr_compare($str, $end, -strlen($end))==0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue