Updated OSB to work with KH 3.1
This commit is contained in:
@@ -19,18 +19,15 @@ class Controller_StaticPage extends Controller_TemplateDefault {
|
||||
$sp = ORM::factory('staticpage',$id);
|
||||
|
||||
if (! $sp->loaded())
|
||||
Request::instance()->redirect('staticpage_category/index');
|
||||
Request::current()->redirect('staticpage_category/index');
|
||||
|
||||
array_push($this->_control,
|
||||
array($sp->staticpage_category->name=>sprintf('staticpage_category/view/'.$sp->static_page_category_id)));
|
||||
array_push($this->_control,array($sp->staticpage_translate->title=>$this->request->uri()));
|
||||
Breadcrumb::name($this->request->uri(),$sp->staticpage_translate->find()->title);
|
||||
|
||||
Block::add(array(
|
||||
'title'=>$sp->staticpage_translate->title,
|
||||
'title'=>$sp->staticpage_translate->find()->title,
|
||||
'body'=>View::factory('staticpage/view')
|
||||
->set('record',$sp),
|
||||
));
|
||||
|
||||
$this->template->content = Block::factory();
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user