Optimised Company() Setup() Config() and changed method_directory into URL
This commit is contained in:
@@ -25,9 +25,9 @@ class Model_Product_Category extends ORM_OSB {
|
||||
// If the user is not logged in, show the site default language
|
||||
// @todo This needs to change to the session language.
|
||||
if (! $ao=Auth::instance()->get_user())
|
||||
$ao=Config::instance()->so;
|
||||
$ao=Company::instance()->so();
|
||||
|
||||
return ($a=$this->product_category_translate->where('language_id','=',$ao->language_id)->find()->description) ? $a : _('No Description');
|
||||
return ($x=$this->product_category_translate->where('language_id','=',$ao->language_id)->find()->description) ? $x : _('No Description');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user