fix set::streamfile issue

This commit is contained in:
Nicolas Le Goff
2012-02-17 11:28:03 +01:00
parent 97c254e86b
commit e4efd52686

View File

@@ -951,11 +951,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(