From bbfa8f506dcdaab3877ec96c31908d15feb94aa9 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 18 Aug 2010 17:00:28 +0000 Subject: [PATCH] Fix: Syntax error --- htdocs/lib/files.lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/lib/files.lib.php b/htdocs/lib/files.lib.php index eaab2dfbe33..4691c159424 100644 --- a/htdocs/lib/files.lib.php +++ b/htdocs/lib/files.lib.php @@ -205,8 +205,8 @@ function dol_mimetype($file,$default='application/octet-stream') // Scripts if (preg_match('/\.bat$/i',$file)) $mime='text/x-bat'; if (preg_match('/\.sh$/i',$file)) $mime='text/x-sh'; - if (preg_match('/\.ksh)$/i',$file)) $mime='text/x-ksh'; - if (preg_match('/\.bash)$/i',$file)) $mime='text/x-bash'; + if (preg_match('/\.ksh$/i',$file)) $mime='text/x-ksh'; + if (preg_match('/\.bash$/i',$file)) $mime='text/x-bash'; // Images if (preg_match('/\.ico$/i',$file)) $mime='image/x-icon'; if (preg_match('/\.(jpg|jpeg)$/i',$file)) $mime='image/jpeg';