mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-01-07 16:13:02 +01:00
Change usage of basename where possible (#1480)
Change usage of basename where possible (#1480)
This commit is contained in:
committed by
Matias Griese
parent
5247a76ec1
commit
85bb59e2b6
@@ -368,7 +368,7 @@ class AdminBaseController
|
||||
|
||||
// Generate random name if required
|
||||
if ($settings->random_name) { // TODO: document
|
||||
$extension = pathinfo($upload->file->name)['extension'];
|
||||
$extension = pathinfo($upload->file->name, PATHINFO_EXTENSION);
|
||||
$upload->file->name = Utils::generateRandomString(15) . '.' . $extension;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user