forked from Wavyzz/dolibarr
Fix: broken $pdf object !
This commit is contained in:
@@ -108,7 +108,7 @@ class pdf_crabe extends ModelePDFFactures
|
||||
function __construct($db)
|
||||
{
|
||||
global $conf,$langs,$mysoc;
|
||||
|
||||
|
||||
// Translations
|
||||
$langs->loadLangs(array("main", "bills"));
|
||||
|
||||
@@ -204,7 +204,7 @@ class pdf_crabe extends ModelePDFFactures
|
||||
if (! is_object($outputlangs)) $outputlangs=$langs;
|
||||
// For backward compatibility with FPDF, force output charset to ISO, because FPDF expect text to be encoded in ISO
|
||||
if (! empty($conf->global->MAIN_USE_FPDF)) $outputlangs->charset_output='ISO-8859-1';
|
||||
|
||||
|
||||
// Translations
|
||||
$outputlangs->loadLangs(array("main", "bills", "products", "dict", "companies"));
|
||||
|
||||
@@ -1543,7 +1543,7 @@ class pdf_crabe extends ModelePDFFactures
|
||||
function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
|
||||
{
|
||||
global $conf, $langs;
|
||||
|
||||
|
||||
// Translations
|
||||
$outputlangs->loadLangs(array("main", "bills", "propal", "companies"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user