[-] BO : fix #PSCFV-2480 : fix translations

This commit is contained in:
lLefevre
2012-05-22 12:42:58 +00:00
parent 0a09286f20
commit c9fea1ebbc
7 changed files with 27 additions and 28 deletions
+2 -2
View File
@@ -42,12 +42,12 @@ abstract class StockManagerModuleCore extends Module
$class_file = _PS_MODULE_DIR_.'/'.$this->name.'/'.$this->stock_manager_class.'.php';
if (!isset($this->stock_manager_class) || !file_exists($class_file))
die(Tools::displayError('Incorrect Stock Manager class ['.$this->stock_manager_class.']'));
die(sprintf(Tools::displayError('Incorrect Stock Manager class [%s]'), $this->stock_manager_class));
require_once($class_file);
if (!class_exists($this->stock_manager_class))
die(Tools::displayError('Stock Manager class not found ['.$this->stock_manager_class.']'));
die(sprintf(Tools::displayError('Stock Manager class not found [%s]'), $this->stock_manager_class));
$class = $this->stock_manager_class;
if (call_user_func(array($class, 'isAvailable')))