From 332b2af2a6e89e2fe3c5e83fcdba86e707b0dc31 Mon Sep 17 00:00:00 2001 From: Eric Marguin Date: Fri, 26 Jan 2007 15:35:55 +0100 Subject: [PATCH] [svn r10927] permit to show picturesz when building a lp --- main/newscorm/learnpath.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/newscorm/learnpath.class.php b/main/newscorm/learnpath.class.php index d13d6917af..7f47238bee 100644 --- a/main/newscorm/learnpath.class.php +++ b/main/newscorm/learnpath.class.php @@ -4455,7 +4455,7 @@ class learnpath { $path_file=mysql_result($result,0,0); $path_parts = pathinfo($path_file); - if(in_array($path_parts['extension'],array('html','txt'))) + if(in_array($path_parts['extension'],array('html','txt','png', 'jpg', 'JPG', 'jpeg', 'JPEG', 'gif', 'swf'))) { $return .= $this->display_document($row['path'], true, true); }