fixed problems if other version og fpdf is in lib path

This commit is contained in:
Roland Gruber 2011-10-06 17:42:28 +00:00
parent d5bc86835d
commit 0d7f704de0
2 changed files with 2 additions and 4 deletions

View File

@ -54,7 +54,7 @@ $line_width = LAMPDF_LINEWIDTH;
function createModulePDF($accounts,$pdf_structure="default") {
/** PDF generator class */
include_once("fpdf.php");
include_once(dirname(__FILE__) . "/fpdf.php");
/** Unicode support for FPDF */
include_once("ufpdf.php");
/** LAM PDF generator class */
@ -73,7 +73,7 @@ function createModulePDF($accounts,$pdf_structure="default") {
$fontName = "BitstreamVeraSans-Roman"; // TODO: load font name from XML file
// Create a new PDF file acording to the account type
$pdf = new LamPDF($load['page_definitions'],$fontName);
$pdf = new lamPDF($load['page_definitions'],$fontName);
// Loop over each account and add a new page in the PDF file for it
foreach($accounts as $account) {

View File

@ -26,8 +26,6 @@ if(!class_exists('UFPDF'))
{
define('UFPDF_VERSION','0.1');
include_once 'fpdf.php';
/**
* Main UFPDF class for creating Unicode PDF documents
*