diff --git a/lib/classes/set/export.class.php b/lib/classes/set/export.class.php index d733b3ab7d..03f273016a 100644 --- a/lib/classes/set/export.class.php +++ b/lib/classes/set/export.class.php @@ -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(