Explorar o código

improve swf, pdf and mp3 visualization by document tool

Juan Carlos Raña %!s(int64=15) %!d(string=hai) anos
pai
achega
4cbf4cec0b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      main/document/document.inc.php

+ 1 - 1
main/document/document.inc.php

@@ -130,7 +130,7 @@ function create_document_link($www, $title, $path, $filetype, $size, $visibility
 		$ext = explode('.', $path);
 		$ext = strtolower($ext[sizeof($ext) - 1]);
 		// "htmlfiles" are shown in a frameset
-		if ($ext == 'htm' || $ext == 'html' || $ext == 'gif' || $ext == 'jpg' || $ext == 'jpeg' || $ext == 'png') {
+		if ($ext == 'htm' || $ext == 'html' || $ext == 'gif' || $ext == 'jpg' || $ext == 'jpeg' || $ext == 'png' || $ext == 'pdf' || $ext == 'swf' || $ext == 'mp3') {
 			$url = 'showinframes.php?'.api_get_cidreq().'&file='.$url_path.$req_gid;
 		} else {
 			// url-encode for problematic characters (we may not call them dangerous characters...)