mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-11-03 10:58:50 +03:00
Prevent usage of Less
This commit is contained in:
parent
29cbd0fbb6
commit
7838aee0f1
4 changed files with 27 additions and 13 deletions
|
|
@ -26,6 +26,13 @@ if (!function_exists('str_starts_with')) {
|
|||
return 0 === strncmp($haystack, $needle, strlen($needle));
|
||||
}
|
||||
}
|
||||
if (!function_exists('str_ends_with')) {
|
||||
function str_ends_with(string $haystack, string $needle) : bool
|
||||
{
|
||||
$length = strlen($needle);
|
||||
return $length ? substr($haystack, -$length) === $needle : true;
|
||||
}
|
||||
}
|
||||
|
||||
if (!defined('APP_VERSION')) {
|
||||
define('APP_VERSION', basename(__DIR__));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue