From: vincent@cubedesigners.com Date: Wed, 23 Feb 2011 16:27:05 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=1e23c8343cfdd8573925c31e72f0fa9643c5b7ae;p=cubeextranet.git --- diff --git a/inc/ws/Controlleur/packager/class.ws.packager.html.php b/inc/ws/Controlleur/packager/class.ws.packager.html.php index 9a2600e71..36621fe45 100644 --- a/inc/ws/Controlleur/packager/class.ws.packager.html.php +++ b/inc/ws/Controlleur/packager/class.ws.packager.html.php @@ -61,15 +61,8 @@ class wsPackagerHTML extends wsPackager { $htmlfile = WS_DOCS . '/' . $infos['document_id'] . '/h' . $infos['document_page'] . '.txt'; if (file_exists($htmlfile)) { - $html = file($htmlfile); - - array_pop($html); - array_splice($html, 0, 6); - foreach($html as $i => $h) { - $html[$i] = trim($h) . ' '; - } - $html = implode("", $html); - $alt .= $html . "\n"; + $html = file_get_contents($htmlfile); + $alt .= "\n" . $html . "\n"; } if ($page == 1) {