mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-01-04 14:50:59 +01:00
Merge branch 'develop' of bitbucket.org:rockettheme/grav-plugin-admin into develop
* 'develop' of bitbucket.org:rockettheme/grav-plugin-admin: PHP 5.4 fix
This commit is contained in:
@@ -719,7 +719,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