Change old is_readable to isReadable, fixes downloads

This commit is contained in:
Michael Gapczynski 2012-12-27 15:49:48 -05:00
parent 1910057900
commit 65f1e52107
1 changed files with 1 additions and 1 deletions

View File

@ -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 {