Dépréciation de fonction php 8.1 paramétres basename
This commit is contained in:
parent
9c924a75e2
commit
7d5d856b75
2
core/vendor/filemanager/UploadHandler.php
vendored
2
core/vendor/filemanager/UploadHandler.php
vendored
@ -1614,7 +1614,7 @@ class UploadHandler
|
||||
return $this->generate_response($response, $print_response);
|
||||
}
|
||||
|
||||
protected function basename($filepath, $suffix = null) {
|
||||
protected function basename($filepath, $suffix = "") {
|
||||
$splited = preg_split('/\//', rtrim ($filepath, '/ '));
|
||||
return substr(basename('X'.$splited[count($splited)-1], $suffix), 1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user