Skip to content
Snippets Groups Projects
Commit 65f1e521 authored by Michael Gapczynski's avatar Michael Gapczynski
Browse files

Change old is_readable to isReadable, fixes downloads

parent 19100579
No related branches found
No related tags found
No related merge requests found
......@@ -100,7 +100,7 @@ class OC_Files {
$filename = $dir . '/' . $files;
}
OC_Util::obEnd();
if($zip or \OC\Files\Filesystem::is_readable($filename)) {
if ($zip or \OC\Files\Filesystem::isReadable($filename)) {
if ( preg_match( "/MSIE/", $_SERVER["HTTP_USER_AGENT"] ) ) {
header( 'Content-Disposition: attachment; filename="' . rawurlencode( basename($filename) ) . '"' );
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment