Fixes to OSB to work with KH 3.3
This commit is contained in:
@@ -15,7 +15,9 @@ class Controller_StaticPage extends Controller_TemplateDefault {
|
||||
* By default show a menu of available categories
|
||||
* @todo Only show categories according to their validity dates
|
||||
*/
|
||||
public function action_view($id) {
|
||||
public function action_view() {
|
||||
$id = $this->request->param('id');
|
||||
|
||||
$sp = ORM::factory('staticpage',$id);
|
||||
|
||||
if (! $sp->loaded())
|
||||
|
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user