+ throw exception is guids not appropriated to local site url
* basename extraction support multibyte strings filenames
This commit is contained in:
10
src/Support/helpers.php
Normal file
10
src/Support/helpers.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
if (!function_exists('mb_basename')) {
|
||||
function mb_basename(string $file)
|
||||
{
|
||||
$filenameParts = explode('/', $file);
|
||||
|
||||
return end($filenameParts);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user