added header_image flag to page view and model, cleaned up uploader
This commit is contained in:
parent
1a3664b517
commit
4c21bbcefd
4 changed files with 18 additions and 52 deletions
|
@ -52,7 +52,8 @@ class Page extends Katharsis_Model_Abstract
|
|||
'subtitle' => $params['subtitle'],
|
||||
'url' => $params['url'],
|
||||
'content' => $params['content'],
|
||||
'active' => $params['active']
|
||||
'active' => $params['active'],
|
||||
'header_image' => $params['header_image']
|
||||
);
|
||||
|
||||
if(isset($params['id']) && is_numeric($params['id']))
|
||||
|
@ -64,7 +65,8 @@ class Page extends Katharsis_Model_Abstract
|
|||
subtitle = :subtitle,
|
||||
url = :url,
|
||||
content = :content,
|
||||
active = :active
|
||||
active = :active,
|
||||
header_image = :header_image
|
||||
WHERE
|
||||
id = :id
|
||||
";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue