Consistency updates for use of viewpath()

This commit is contained in:
Deon George
2011-12-21 12:39:21 +11:00
parent a40ce27a16
commit a893527d77
42 changed files with 125 additions and 125 deletions

View File

@@ -26,7 +26,7 @@ class Controller_Product extends Controller_TemplateDefault {
Block::add(array(
'title'=>sprintf('%s: %s',_('Category'),$cat->name),
'body'=>View::factory('product/category/view')
'body'=>View::factory($this->viewpath().'/view')
->set('results',$this->_get_category($cat->id))
->set('cat',$cat->id),
));
@@ -63,7 +63,7 @@ class Controller_Product extends Controller_TemplateDefault {
Block::add(array(
'title'=>$po->product_translate->find()->description_short,
'body'=>View::factory('product/view')
'body'=>View::factory($this->viewpath())
->set('record',$po),
));
}