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:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user