Qual: Derived missing variable from a known one

This commit is contained in:
Raphaël Doursenaud
2014-04-23 16:01:08 +02:00
parent 202344e8fb
commit 6fc9fbd7a6

View File

@@ -1755,7 +1755,7 @@ function dol_check_secure_access_document($modulepart,$original_file,$entity,$fu
{ {
$accessallowed=1; $accessallowed=1;
$dir='files'; $dir='files';
if ($type == 'application/x-bittorrent') $dir='torrents'; if (dol_mimetype($original_file) == 'application/x-bittorrent') $dir='torrents';
$original_file=$conf->bittorrent->dir_output.'/'.$dir.'/'.$original_file; $original_file=$conf->bittorrent->dir_output.'/'.$dir.'/'.$original_file;
} }