Correction chargement des langs

This commit is contained in:
Rodolphe Quiedeville 2005-04-07 08:08:52 +00:00
parent 3d1ff4fd17
commit 584f8ad395

View File

@ -1,5 +1,5 @@
<?php <?php
/* Copyright (C) 2003-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> /* Copyright (C) 2003-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
@ -44,7 +44,7 @@ class pdf_bernique extends ModelePDFFactures {
function write_pdf_file($facid) function write_pdf_file($facid)
{ {
global $user,$langs,$user; global $user,$langs,$conf;
$langs->load("main"); $langs->load("main");
$langs->load("bills"); $langs->load("bills");
@ -229,6 +229,11 @@ class pdf_bernique extends ModelePDFFactures {
function _tableau_tot(&$pdf, $fac, $top, $height) function _tableau_tot(&$pdf, $fac, $top, $height)
{ {
global $langs;
$langs->load("main");
$langs->loads("bills");
$tab2_top = $top + $height; $tab2_top = $top + $height;
$tab2_hl = 5; $tab2_hl = 5;
$tab2_height = $tab2_hl * 4; $tab2_height = $tab2_hl * 4;