// Translations
This commit is contained in:
@@ -415,7 +415,7 @@ class LocalizationPackCore
|
||||
|
||||
if (isset($name) && isset($attributes['value']) && Configuration::get($name) !== false)
|
||||
if (!Configuration::updateValue($name, (string)$attributes['value']))
|
||||
$this->_errors[] = Tools::displayError('An error has occured during the configuration setup: '.$name);
|
||||
$this->_errors[] = Tools::displayError('An error occurred during the configuration setup: '.$name);
|
||||
}
|
||||
|
||||
return true;
|
||||
@@ -431,7 +431,7 @@ class LocalizationPackCore
|
||||
$group = new Group((int)_PS_DEFAULT_CUSTOMER_GROUP_);
|
||||
$group->price_display_method = (int)$attributes['price_display_method'];
|
||||
if (!$group->save())
|
||||
$this->_errors[] = Tools::displayError('An error has occurred during the default group update');
|
||||
$this->_errors[] = Tools::displayError('An error occurred during the default group update');
|
||||
}
|
||||
else
|
||||
$this->_errors[] = Tools::displayError('An error has occurred during the default group update');
|
||||
|
||||
@@ -686,7 +686,7 @@ abstract class ObjectModelCore
|
||||
{
|
||||
// Object must have a variable called 'active'
|
||||
if (!array_key_exists('active', $this))
|
||||
throw new PrestaShopException('property "active is missing in object '.get_class($this));
|
||||
throw new PrestaShopException('property "active" is missing in object '.get_class($this));
|
||||
|
||||
// Update active status on object
|
||||
$this->active = !(int)$this->active;
|
||||
|
||||
@@ -64,7 +64,7 @@ interface StockManagerInterface
|
||||
* @param int $id_stock_movement_reason
|
||||
* @param bool $is_usable
|
||||
* @param int $id_order Optionnal
|
||||
* @return array - empty if an error occured | details of removed products quantities with corresponding prices otherwise
|
||||
* @return array - empty if an error occurred | details of removed products quantities with corresponding prices otherwise
|
||||
*/
|
||||
public function removeProduct($id_product, $id_product_attribute, Warehouse $warehouse, $quantity, $id_stock_movement_reason, $is_usable = true, $id_order = null);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user