mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-12-29 11:50:48 +01:00
PHP 5.4 fix
This commit is contained in:
@@ -718,7 +718,8 @@ class AdminController
|
||||
$data = $this->post;
|
||||
|
||||
// Find new parent page in order to build the path.
|
||||
$parent = empty(trim($data['route'], '/')) ? $pages->root() : $pages->dispatch($data['route'], true);
|
||||
$route = trim($data['route'], '/');
|
||||
$parent = empty($route) ? $pages->root() : $pages->dispatch($data['route'], true);
|
||||
// And then get the current page.
|
||||
$page = $this->admin->page(true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user