// bugfix class Category + simplification AdminCategoriesController

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10106 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mMarinetti
2011-11-14 15:04:06 +00:00
parent 554bc0e943
commit 04e40cbb73
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;