// Context part 25
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7794 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -29,7 +29,7 @@ class AdminProfiles extends AdminTab
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
$context = Context::getContext();
|
||||
$this->context = Context::getContext();
|
||||
$this->table = 'profile';
|
||||
$this->className = 'Profile';
|
||||
$this->lang = true;
|
||||
@@ -42,7 +42,7 @@ class AdminProfiles extends AdminTab
|
||||
$this->identifier = 'id_profile';
|
||||
|
||||
$list_profile = array();
|
||||
foreach(Profile::getProfiles($context->language->id) as $profil)
|
||||
foreach(Profile::getProfiles($this->context->language->id) as $profil)
|
||||
$list_profile[] = array('value' => $profil['id_profile'], 'name' => $profil['name']);
|
||||
|
||||
parent::__construct();
|
||||
|
||||
Reference in New Issue
Block a user