Consistency updates for use of viewpath()
This commit is contained in:
@@ -41,18 +41,7 @@ class Controller_User_Service extends Controller_TemplateDefault_User {
|
||||
}
|
||||
|
||||
public function action_view() {
|
||||
$output = '';
|
||||
|
||||
// Check if we are a table view
|
||||
if (! $id = $this->request->param('id')) {
|
||||
if (isset($_POST['id']) AND is_array($_POST['id']))
|
||||
Table::post('service_view','id');
|
||||
|
||||
list($id,$output) = Table::page('service_view');
|
||||
|
||||
} else {
|
||||
$id = $this->request->param('id');
|
||||
}
|
||||
list($id,$output) = Table::page(__METHOD__);
|
||||
|
||||
$so = ORM::factory('service',$id);
|
||||
|
||||
@@ -61,7 +50,7 @@ class Controller_User_Service extends Controller_TemplateDefault_User {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
$output .= View::factory('service/user/view')
|
||||
$output .= View::factory($this->viewpath())
|
||||
->set('so',$so);
|
||||
|
||||
Block::add(array(
|
||||
|
Reference in New Issue
Block a user