From 3bc9db090ca10d695fabe7a336ef5e8da767b173 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Ra=C3=B1a?= Date: Thu, 25 Nov 2010 22:01:40 +0100 Subject: [PATCH] enhance the export of wiki to pdf when complex wiki links --- main/wiki/wiki.inc.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/main/wiki/wiki.inc.php b/main/wiki/wiki.inc.php index 2873b88ddf..d530ee6cb6 100755 --- a/main/wiki/wiki.inc.php +++ b/main/wiki/wiki.inc.php @@ -885,8 +885,11 @@ function display_wiki_entry($newtitle) //echo '
'; echo ''; // - echo ''; - echo ''; + echo ''; + $clean_pdf_content=trim(preg_replace("/\[\[|\]\]/", " ", $content)); + $array_clean_pdf_content= explode('|', $clean_pdf_content); + $clean_pdf_content= $array_clean_pdf_content[1]; + echo ''; echo ''; echo '
'; echo '';