// Context part 5

This commit is contained in:
tDidierjean
2011-07-13 15:24:38 +00:00
parent cb3f2f7b52
commit b09c76f5b4
89 changed files with 417 additions and 441 deletions
+3 -3
View File
@@ -76,11 +76,11 @@ class AdminStates extends AdminTab
if ($this->deleted)
{
$object->deleted = 1;
if ($object->update()) Tools::redirectAdmin($currentIndex.'&conf=1&token='.$token);
if ($object->update()) Tools::redirectAdmin(self::$currentIndex.'&conf=1&token='.$token);
}
else if ($object->delete())
{
Tools::redirectAdmin($currentIndex.'&conf=1&token='.$token);
Tools::redirectAdmin(self::$currentIndex.'&conf=1&token='.$token);
}
$this->_errors[] = Tools::displayError('An error occurred during deletion.');
}
@@ -107,7 +107,7 @@ class AdminStates extends AdminTab
return;
echo '
<form action="'.$currentIndex.'&submitAdd'.$this->table.'=1&token='.$this->token.'" method="post">
<form action="'.self::$currentIndex.'&submitAdd'.$this->table.'=1&token='.$this->token.'" method="post">
'.($obj->id ? '<input type="hidden" name="id_'.$this->table.'" value="'.$obj->id.'" />' : '').'
<fieldset><legend><img src="../img/admin/world.gif" />'.$this->l('States').'</legend>
<label>'.$this->l('Name:').' </label>