// Context part 9

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7637 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2011-07-18 10:08:07 +00:00
parent 311e8ab964
commit 0dbcebf01e
39 changed files with 290 additions and 445 deletions
+2 -4
View File
@@ -29,8 +29,7 @@ class AdminProfiles extends AdminTab
{
public function __construct()
{
global $cookie;
$context = Context::getContext();
$this->table = 'profile';
$this->className = 'Profile';
$this->lang = true;
@@ -43,7 +42,7 @@ class AdminProfiles extends AdminTab
$this->identifier = 'id_profile';
$list_profile = array();
foreach(Profile::getProfiles($cookie->id_lang) as $profil)
foreach(Profile::getProfiles($context->language->id) as $profil)
$list_profile[] = array('value' => $profil['id_profile'], 'name' => $profil['name']);
parent::__construct();
@@ -59,7 +58,6 @@ class AdminProfiles extends AdminTab
public function displayForm($isMainTab = true)
{
global $currentIndex;
parent::displayForm();
if (!($obj = $this->loadObject(true)))