Problem with links in PDF export of an article

Please report bugs here!

Moderator: Thorsten

Post Reply
mojo_jojo
Posts: 12
Joined: Tue Feb 27, 2007 5:23 pm
Contact:

Problem with links in PDF export of an article

Post by mojo_jojo »

Hi,

when exporting an article in pdf, I noticed that the link displayed in the footer is not affected if you enable mod_rewrite.

I suggest using the PMF_Link class for that link, e.g.

$url =PMF_Link::getSystemScheme().$_SERVER["HTTP_HOST"].str_replace("pdf.php", "index.php?action=artikel&cat=".$this->categories[$this->rubrik]["id"]."&id=".$_REQUEST["id"]."&artlang=".$_REQUEST["lang"], $_SERVER["PHP_SELF"]);
$urlObj = new PMF_Link($url);
$urlObj->itemTitle = $this->thema;
$_url = str_replace('&', '&', $urlObj->toString());
$this->Cell(0, 10, "URL: ".$_url, 0, 1, "C", 0, $_url);

in Pdf.php, function Footer().
Best regards,

Georgi
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

you're right again... I fixed it in CVS.

Best regards
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply