// Context part 7

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7629 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2011-07-15 13:59:26 +00:00
parent 3a922aabfe
commit 20276404a8
24 changed files with 101 additions and 163 deletions
+1 -7
View File
@@ -33,8 +33,6 @@ class AdminCarriers extends AdminTab
public function __construct()
{
global $cookie;
$this->table = 'carrier';
$this->className = 'Carrier';
$this->lang = true;
@@ -82,12 +80,10 @@ class AdminCarriers extends AdminTab
public function displayForm($isMainTab = true)
{
global $currentIndex, $cookie;
parent::displayForm();
if (!($obj = $this->loadObject(true)))
return;
$currentLanguage = (int)($cookie->id_lang);
echo '<script type="text/javascript">
$(document).ready(function(){
@@ -139,7 +135,7 @@ class AdminCarriers extends AdminTab
</div>
<label>'.$this->l('Group access').'</label>
<div class="margin-form">';
$groups = Group::getGroups((int)($cookie->id_lang));
$groups = Group::getGroups(Context::getContext()->language->id));
if (sizeof($groups))
{
echo '
@@ -274,8 +270,6 @@ class AdminCarriers extends AdminTab
public function postProcess()
{
global $currentIndex;
if (Tools::getValue('submitAdd'.$this->table))
{
/* Checking fields validity */