diff --git a/lib/classes/set/export.class.php b/lib/classes/set/export.class.php index 03f273016a..20dc58fd58 100644 --- a/lib/classes/set/export.class.php +++ b/lib/classes/set/export.class.php @@ -951,13 +951,13 @@ class set_export extends set_abstract if (is_file($file)) { - $testPath = function(){ + $testPath = function($file, $registry){ 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, $registry)) { $file_xaccel = str_replace( array(