mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-04 20:36:03 +01:00
Merge branch 'feature/fix-error-on-deleting-homepage' into develop
This commit is contained in:
@@ -486,6 +486,11 @@ class Admin
|
||||
|
||||
if (!$page) {
|
||||
$slug = basename($path);
|
||||
|
||||
if ($slug == '') {
|
||||
return null;
|
||||
}
|
||||
|
||||
$ppath = dirname($path);
|
||||
|
||||
// Find or create parent(s).
|
||||
|
||||
Reference in New Issue
Block a user