diff --git a/htdocs/expedition/expedition.class.php b/htdocs/expedition/expedition.class.php index d2d7526a54c..9d3b9cfd4c4 100644 --- a/htdocs/expedition/expedition.class.php +++ b/htdocs/expedition/expedition.class.php @@ -412,7 +412,7 @@ class Expedition $mod = "pdf_expedition_rouget"; require_once $module_file_name; - $pdf = new $mod($this->db, $this); + $pdf = new $mod($this->db); $dir = DOL_DATA_ROOT . "/expedition/" . $this->id ; @@ -426,7 +426,7 @@ class Expedition if (file_exists($dir)) { - $pdf->generate($file); + $pdf->generate($this, $file); } }