Merge branch '3.6' of github.com:alchemy-fr/Phraseanet into 3.6

This commit is contained in:
Romain Neutron
2012-02-17 12:40:10 +01:00

View File

@@ -977,11 +977,13 @@ class set_export extends set_abstract
if (is_file($file))
{
$testPath = strpos($file, $registry->get('GV_RootPath').'tmp/download/') !== false
$testPath = function(){
return strpos($file, $registry->get('GV_RootPath').'tmp/download/') !== false
|| strpos($file, $registry->get('GV_RootPath').'tmp/lazaret/') !== false
|| strpos($file, $registry->get('GV_X_Accel_Redirect')) !== false;
};
if ($registry->get('GV_modxsendfile') && $testPath)
if ($registry->get('GV_modxsendfile') && $testPath())
{
$file_xaccel = str_replace(
array(