1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-07-31 02:10:37 +02:00

Pages Plugin: add action improvements.

This commit is contained in:
Awilum
2012-11-11 23:21:50 +02:00
parent ac27761362
commit 9249b87a67

View File

@@ -198,11 +198,12 @@
if (count($errors) == 0) {
// Insert new page
if($pages->insert(array('slug' => Security::safeName(Request::post('page_name'), '-', true),
if ($pages->insert(array('slug' => Security::safeName(Request::post('page_name'), '-', true),
'template' => Request::post('templates'),
'parent' => $parent_page,
'status' => Request::post('status'),
'access' => Request::post('access'),
'expand' => '0',
'robots_index' => $robots_index,
'robots_follow'=> $robots_follow,
'title' => Request::post('page_title'),