Fixes to OSB to work with KH 3.3

This commit is contained in:
Deon George
2012-11-10 10:13:57 +11:00
parent ea36639638
commit 6db02ae77d
238 changed files with 813 additions and 938 deletions

View File

@@ -15,7 +15,7 @@ class Controller_StaticPage_Category extends Controller_TemplateDefault {
* By default show a menu of available categories
*/
public function action_index() {
Request::current()->redirect('staticpage_category/list');
HTTP::redirect('staticpage_category/list');
}
public function action_list() {
@@ -31,11 +31,13 @@ class Controller_StaticPage_Category extends Controller_TemplateDefault {
* @todo Only show categories according to their validity dates
* @todo Obey sort order
*/
public function action_view($id) {
public function action_view() {
$id = $this->request->param('id');
$spc = ORM::factory('staticpage_category',$id);
if (! $spc->loaded())
Request::current()->redirect('welcome/index');
HTTP::redirect('welcome/index');
Breadcrumb::name($this->request->uri(),$spc->name);