From 69c265fff901490b19a391f6b56490ba20252e42 Mon Sep 17 00:00:00 2001 From: duergner Date: Tue, 26 Aug 2003 20:39:20 +0000 Subject: [PATCH] silly bug fixed --- lam/lib/pdf.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lam/lib/pdf.inc b/lam/lib/pdf.inc index b0fe7a21..4dc30ea6 100644 --- a/lam/lib/pdf.inc +++ b/lam/lib/pdf.inc @@ -248,14 +248,14 @@ function createUserPDF($accounts) { class lamPDF extends FPDF { // Print page header function header() { - $lamPath = explode("/",$SCRIPT_NAME); - $i=0; + $lamPath = explode("/",__FILE__); + $i=1; $imageFile = ""; while($lamPath[$i] <> "lam") { $imageFile .= "/" . $lamPath[$i]; $i++; } - $imageFile .= "/graphics/printLogo.jpg"; + $imageFile .= "/lam/graphics/printLogo.jpg"; $this->Image($imageFile,10,10,50,20,"JPG"); $this->SetFont("arial","B",22); $this->Cell(170,5,"LDAP Account Manager",0,1,"R",0);