Fix: Specimen generation fails

This commit is contained in:
Laurent Destailleur 2012-08-08 04:06:19 +02:00
parent 0a8ae2934d
commit 4786ab9268

View File

@ -95,7 +95,7 @@ if ($action == 'specimen') // For orders
{ {
require_once($file); require_once($file);
$module = new $classname($db); $module = new $classname($db,$commande);
if ($module->write_file($commande,$langs) > 0) if ($module->write_file($commande,$langs) > 0)
{ {
@ -141,7 +141,7 @@ if ($action == 'specimenfacture') // For invoices
{ {
require_once($file); require_once($file);
$module = new $classname($db); $module = new $classname($db,$facture);
if ($module->write_file($facture,$langs) > 0) if ($module->write_file($facture,$langs) > 0)
{ {