2
0
forked from Wavyzz/dolibarr

Fix: Backup must not be inside a "temp" directory or it is lost after a "no data loss" purge.

This commit is contained in:
Laurent Destailleur
2009-11-25 19:08:09 +00:00
parent 8fedb1327b
commit 9e49aeaeb5
2 changed files with 4 additions and 1 deletions

View File

@@ -1466,6 +1466,9 @@ function img_mime($file,$alt='')
if (preg_match('/\.(mp3|ogg|au|wav|wma)$/i',$file)) $mime='audio';
if (preg_match('/\.(avi|divx|xvid|wmv|mpg|mpeg)$/i',$file)) $mime='video';
if (preg_match('/\.(zip|rar|gz|tgz|z|cab|bz2|7z)$/i',$file)) $mime='archive';
if (preg_match('/\.err$/i',$file)) $mime='error';
if (empty($alt)) $alt='Mime type: '.$mime;
$mime.='.png';