Revert "Fix: X-Accel-Redirect did not support custom data dir and local mounts"

This reverts commit f2075f803f.
This commit is contained in:
dratini0 2015-02-11 21:15:13 +01:00
parent 80032ec301
commit b1594ad1df
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ class OC_Files {
}
if (isset($_SERVER['MOD_X_ACCEL_REDIRECT_ENABLED'])) {
$filename = \OC\Files\Filesystem::getLocalFile($filename);
$filename = \OC::$WEBROOT . '/data' . \OC\Files\Filesystem::getRoot() . $filename;
header("X-Accel-Redirect: " . $filename);
}
}