Change old is_readable to isReadable, fixes downloads
This commit is contained in:
parent
1910057900
commit
65f1e52107
|
@ -100,7 +100,7 @@ class OC_Files {
|
||||||
$filename = $dir . '/' . $files;
|
$filename = $dir . '/' . $files;
|
||||||
}
|
}
|
||||||
OC_Util::obEnd();
|
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"] ) ) {
|
if ( preg_match( "/MSIE/", $_SERVER["HTTP_USER_AGENT"] ) ) {
|
||||||
header( 'Content-Disposition: attachment; filename="' . rawurlencode( basename($filename) ) . '"' );
|
header( 'Content-Disposition: attachment; filename="' . rawurlencode( basename($filename) ) . '"' );
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue