diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-12-27 15:49:48 -0500 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-12-27 15:49:48 -0500 |
commit | 65f1e521079968a4450468917649b241b0fb6b24 (patch) | |
tree | a024f096a04b9fae78e75b2e97e5c3ec31216dfa /lib/files.php | |
parent | 1910057900476c5b7509a456a460d70664c01610 (diff) | |
download | nextcloud-server-65f1e521079968a4450468917649b241b0fb6b24.tar.gz nextcloud-server-65f1e521079968a4450468917649b241b0fb6b24.zip |
Change old is_readable to isReadable, fixes downloads
Diffstat (limited to 'lib/files.php')
-rw-r--r-- | lib/files.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/files.php b/lib/files.php index e12797bd610..15bfbc3fc29 100644 --- a/lib/files.php +++ b/lib/files.php @@ -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 { |