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:
Gert
2015-05-01 20:45:50 +02:00

View File

@@ -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);