From 4d98b294f2da1d198a755eb4a79ea23c7f4180de Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Thu, 19 May 2011 12:20:34 +0000 Subject: [PATCH] =?UTF-8?q?Modification=20des=20r=C3=A9f=C3=A9rences=20ver?= =?UTF-8?q?s=20les=20css,=20images=20et=20scripts=20javascript=20dans=20le?= =?UTF-8?q?=20html=20enregistr=C3=A9=20pour=20le=20PDF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/Application/Controller/Plugin/Pdf.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/Application/Controller/Plugin/Pdf.php b/library/Application/Controller/Plugin/Pdf.php index 94fbe0789..fa50328d5 100644 --- a/library/Application/Controller/Plugin/Pdf.php +++ b/library/Application/Controller/Plugin/Pdf.php @@ -10,7 +10,9 @@ class Application_Controller_Plugin_Pdf extends Zend_Controller_Plugin_Abstract if ($page->exportable('pdf')){ $layout = $this->_response->getBody(); $filename = $page->filename('pdf', $this->_request->getParams()); - file_put_contents(APPLICATION_PATH.'/../cache/pages/'.$filename.'.html', $layout); + $content = preg_replace('@