Fix: Backup must not be inside a "temp" directory or it is lost after a "no data loss" purge.
This commit is contained in:
parent
8fedb1327b
commit
9e49aeaeb5
@ -417,7 +417,7 @@ if ($modulepart)
|
|||||||
{
|
{
|
||||||
$accessallowed=1;
|
$accessallowed=1;
|
||||||
}
|
}
|
||||||
$original_file=$conf->admin->dir_temp.'/'.$original_file;
|
$original_file=$conf->admin->dir_output.'/'.$original_file;
|
||||||
$sqlprotectagainstexternals = '';
|
$sqlprotectagainstexternals = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1466,6 +1466,9 @@ function img_mime($file,$alt='')
|
|||||||
if (preg_match('/\.(mp3|ogg|au|wav|wma)$/i',$file)) $mime='audio';
|
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('/\.(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('/\.(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;
|
if (empty($alt)) $alt='Mime type: '.$mime;
|
||||||
|
|
||||||
$mime.='.png';
|
$mime.='.png';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user