// Replace public by protected in override methods

This commit is contained in:
tDidierjean
2012-02-06 13:41:51 +00:00
parent e3b7b4f094
commit fccb65f6d3
12 changed files with 18 additions and 18 deletions
+2 -2
View File
@@ -217,14 +217,14 @@ class AdminShopControllerCore extends AdminController
return false;
}
public function afterAdd($new_shop)
protected function afterAdd($new_shop)
{
if (Tools::getValue('useImportData') && ($import_data = Tools::getValue('importData')) && is_array($import_data))
$new_shop->copyShopData((int)Tools::getValue('importFromShop'), $import_data);
return parent::afterAdd($new_shop);
}
public function afterUpdate($new_shop)
protected function afterUpdate($new_shop)
{
Category::updateFromShop(Tools::getValue('categoryBox'), $new_shop->id);
if (Tools::getValue('useImportData') && ($import_data = Tools::getValue('importData')) && is_array($import_data))