summaryrefslogtreecommitdiffstats
path: root/lib/files.php
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-12-27 15:49:48 -0500
committerMichael Gapczynski <mtgap@owncloud.com>2012-12-27 15:49:48 -0500
commit65f1e521079968a4450468917649b241b0fb6b24 (patch)
treea024f096a04b9fae78e75b2e97e5c3ec31216dfa /lib/files.php
parent1910057900476c5b7509a456a460d70664c01610 (diff)
downloadnextcloud-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.php2
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 {