// bugfix class Category + simplification AdminCategoriesController
This commit is contained in:
@@ -902,7 +902,7 @@ class CategoryCore extends ObjectModel
|
||||
public function getParentsCategories($id_lang = null)
|
||||
{
|
||||
if (is_null($id_lang))
|
||||
$id_lang = $context->language->id;
|
||||
$id_lang = Context::getContext()->language->id;
|
||||
|
||||
$categories = null;
|
||||
$id_current = $this->id;
|
||||
|
||||
@@ -102,7 +102,7 @@ class AdminCategoriesControllerCore extends AdminController
|
||||
$this->_filter .= ' AND `id_parent` = '.(int)$this->_category->id.' ';
|
||||
$this->_select = 'position ';
|
||||
|
||||
$categories_tree = $this->_category->getParentsCategories($this->context->language->id);
|
||||
$categories_tree = $this->_category->getParentsCategories();
|
||||
asort($categories_tree);
|
||||
$categories_name = stripslashes($this->_category->getName());
|
||||
$this->tpl_list_vars['categories_tree'] = $categories_tree;
|
||||
|
||||
Reference in New Issue
Block a user