// Refactoring: remove $token arg from process functions

This commit is contained in:
tDidierjean
2012-03-26 15:25:36 +00:00
parent e4cfe2e688
commit 98aa77ef24
19 changed files with 145 additions and 199 deletions
+3 -5
View File
@@ -356,14 +356,14 @@ class AdminGroupsControllerCore extends AdminController
return array('unauth_modules' => $unauth_modules, 'auth_modules' => $auth_modules);
}
public function processSave($token)
public function processSave()
{
if (!$this->validateDiscount(Tools::getValue('reduction')))
$this->errors[] = Tools::displayError('Discount value is incorrect (must be a percentage)');
else
{
$this->updateCategoryReduction();
parent::processSave($token);
parent::processSave();
$this->updateRestrictions();
}
}
@@ -452,10 +452,8 @@ class AdminGroupsControllerCore extends AdminController
/**
* Toggle show prices flag
*
* @param string $token
*/
public function processChangeShowPricesVal($token)
public function processChangeShowPricesVal()
{
$group = new Group($this->id_object);
if (!Validate::isLoadedObject($group))