mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-01-04 23:00:40 +01:00
Fill up title when creating a new page
This commit is contained in:
@@ -250,13 +250,12 @@ class AdminController
|
||||
}
|
||||
|
||||
$data = $this->post;
|
||||
$route = $data['route'];
|
||||
$route = $data['route'] != '/' ? $data['route'] : '';
|
||||
$folder = $data['folder'];
|
||||
$type = $data['type'];
|
||||
$path = $route . '/' . $folder;
|
||||
|
||||
$this->admin->session()->{$path} = $type;
|
||||
$this->setRedirect($this->view . '/' . $path);
|
||||
$this->admin->session()->{$path} = $data;
|
||||
$this->setRedirect("{$this->view}/{$path}");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user