From 366ac26e94f17c5540ba944422fb90b18bda60ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Loguercio?= Date: Wed, 12 Oct 2016 12:51:25 -0500 Subject: [PATCH] Fix Preview pdf and hotpoatatoes in learnpath - Refs #8448 --- main/lp/learnpath.class.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/main/lp/learnpath.class.php b/main/lp/learnpath.class.php index c0968d918a..3afa508deb 100755 --- a/main/lp/learnpath.class.php +++ b/main/lp/learnpath.class.php @@ -6364,7 +6364,7 @@ class learnpath $result = Database::query($sql_doc); $path_file = Database::result($result, 0, 0); $path_parts = pathinfo($path_file); - // TODO: Correct the following naive comparisons, also, htm extension is missing. + // TODO: Correct the following naive comparisons. if (in_array($path_parts['extension'], array( 'html', 'txt', @@ -6374,11 +6374,18 @@ class learnpath 'jpeg', 'JPEG', 'gif', - 'swf' + 'swf', + 'pdf', + 'htm' ))) { $return .= $this->display_document($row['path'], true, true); } break; + case TOOL_HOTPOTATOES: + + $return .= $this->display_document($row['path'], false, true); + break; + } $return .= ''; }