Explorar el Código

[svn r10927] permit to show picturesz when building a lp

Eric Marguin hace 18 años
padre
commit
332b2af2a6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      main/newscorm/learnpath.class.php

+ 1 - 1
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);
 					}