[Legacy] Add endsWith function

This commit is contained in:
Jack Anderson 2024-03-07 12:17:56 +00:00
parent e9166c941d
commit e8883ab507

View file

@ -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);
}
}