Fill up title when creating a new page

This commit is contained in:
Matias Griese
2014-09-17 11:54:57 +03:00
parent a4415b317c
commit 20ceb2cabb
3 changed files with 9 additions and 8 deletions

View File

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