diff --git a/admin-dev/ajax.php b/admin-dev/ajax.php index f1817a731..40cb370ab 100644 --- a/admin-dev/ajax.php +++ b/admin-dev/ajax.php @@ -70,7 +70,7 @@ function displayJavascriptAlert($s){echo ' - '; } diff --git a/admin-dev/tabs/AdminDiscounts.php b/admin-dev/tabs/AdminDiscounts.php index 246ae44d6..ff7571783 100644 --- a/admin-dev/tabs/AdminDiscounts.php +++ b/admin-dev/tabs/AdminDiscounts.php @@ -347,7 +347,7 @@ class AdminDiscounts extends AdminTab if ($(\'#filter\').val()) filterValue = $(\'#filter\').val(); - $.getJSON("'.dirname($currentIndex).'/ajax.php",{ajaxDiscountCustomers:1,filter:filterValue}, + $.getJSON("'.dirname(self::$currentIndex).'/ajax.php",{ajaxDiscountCustomers:1,filter:filterValue}, function(obj) { var groups_length = obj.groups.length; if (obj.groups.length == 0) diff --git a/admin-dev/tabs/AdminGroups.php b/admin-dev/tabs/AdminGroups.php index 45efeb00c..8d6469ecd 100644 --- a/admin-dev/tabs/AdminGroups.php +++ b/admin-dev/tabs/AdminGroups.php @@ -168,13 +168,13 @@ class AdminGroups extends AdminTab public function viewgroup() { $context = Context::getContext(); - $currentIndex = 'index.php?tab=AdminGroups'; + self::$currentIndex = 'index.php?tab=AdminGroups'; if (!($obj = $this->loadObject(true))) return; echo '
'.$this->l('JPEG images have a small file size and standard quality. PNG images have a bigger file size, a higher quality and support transparency. Note that in all cases the image files will have the .jpg extension.').' diff --git a/admin-dev/tabs/AdminProducts.php b/admin-dev/tabs/AdminProducts.php index 090525ae3..eb2949732 100644 --- a/admin-dev/tabs/AdminProducts.php +++ b/admin-dev/tabs/AdminProducts.php @@ -1188,7 +1188,7 @@ class AdminProducts extends AdminTab $this->_errors[] = Tools::displayError('An error occurred while adding tags.'); elseif ($id_image = $this->addProductImage($object, Tools::getValue('resizer'))) { - $currentIndex .= '&image_updated='.(int)Tools::getValue('id_image'); + self::$currentIndex .= '&image_updated='.(int)Tools::getValue('id_image'); Hook::updateProduct($object); Search::indexation(false, $object->id); if (Tools::getValue('resizer') == 'man' && isset($id_image) AND is_int($id_image) AND $id_image) diff --git a/admin-dev/tabs/AdminReturn.php b/admin-dev/tabs/AdminReturn.php index eb3cd689f..bfbd7368c 100644 --- a/admin-dev/tabs/AdminReturn.php +++ b/admin-dev/tabs/AdminReturn.php @@ -105,7 +105,7 @@ class AdminReturn extends AdminTab Mail::Send((int)$order->id_lang, 'order_return_state', Mail::l('Your order return state has changed', $order->id_lang), $vars, $customer->email, $customer->firstname.' '.$customer->lastname, NULL, NULL, NULL, NULL, _PS_MAIL_DIR_, true); - Tools::redirectAdmin($currentIndex.'&conf=4&token='.$this->token); + Tools::redirectAdmin(self::$currentIndex.'&conf=4&token='.$this->token); } } else diff --git a/admin-dev/tabs/AdminThemes.php b/admin-dev/tabs/AdminThemes.php index 8582daf97..b736c6137 100644 --- a/admin-dev/tabs/AdminThemes.php +++ b/admin-dev/tabs/AdminThemes.php @@ -127,7 +127,7 @@ class AdminThemes extends AdminPreferences echo ''; if (@ini_get('allow_url_fopen') AND @fsockopen('addons.prestashop.com', 80, $errno, $errst, 3)) echo '