mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-01-06 15:43:01 +01:00
Fixed issue with windows paths in parent field #1699
This commit is contained in:
@@ -2340,8 +2340,9 @@ class AdminController extends AdminBaseController
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
$file_page = $page_instances[$fileInfo->getPathname()] ?? null;
|
||||
$file_path = Utils::replaceFirstOccurrence(GRAV_ROOT, '', $fileInfo->getPathname());
|
||||
$file_path = str_replace('\\', '/', $fileInfo->getPathname());
|
||||
$file_page = $page_instances[$file_path] ?? null;
|
||||
$file_path = Utils::replaceFirstOccurrence(GRAV_ROOT, '', $file_path);
|
||||
$type = $fileInfo->getType();
|
||||
|
||||
$payload = [
|
||||
|
||||
Reference in New Issue
Block a user