// bugfix class Category + simplification AdminCategoriesController

This commit is contained in:
mMarinetti
2011-11-14 15:04:06 +00:00
parent 00d9bd5f3f
commit 2b254e1a2a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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;