added header_image flag to page view and model, cleaned up uploader

This commit is contained in:
Logsol 2013-07-10 10:35:54 +02:00
parent 1a3664b517
commit 4c21bbcefd
4 changed files with 18 additions and 52 deletions

View file

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