From 6f58eca5349d8c82f7bba3a7c0f92c0caa8e3749 Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Tue, 24 Jul 2012 21:35:03 -0400 Subject: [PATCH] Change read only check to isCreatable --- apps/files/index.php | 2 +- apps/files/templates/index.php | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/files/index.php b/apps/files/index.php index 79bed8e357..225e2d7ac1 100644 --- a/apps/files/index.php +++ b/apps/files/index.php @@ -93,7 +93,7 @@ $tmpl = new OCP\Template( 'files', 'index', 'user' ); $tmpl->assign( 'fileList', $list->fetchPage(), false ); $tmpl->assign( 'breadcrumb', $breadcrumbNav->fetchPage(), false ); $tmpl->assign( 'dir', $dir); -$tmpl->assign( 'readonly', !OC_Filesystem::is_writable($dir.'/')); +$tmpl->assign( 'isCreatable', OC_Filesystem::isCreatable($dir.'/')); $tmpl->assign( 'files', $files ); $tmpl->assign( 'uploadMaxFilesize', $maxUploadFilesize); $tmpl->assign( 'uploadMaxHumanFilesize', OCP\Util::humanFileSize($maxUploadFilesize)); diff --git a/apps/files/templates/index.php b/apps/files/templates/index.php index 44000171a1..bcf683ae4a 100644 --- a/apps/files/templates/index.php +++ b/apps/files/templates/index.php @@ -1,8 +1,8 @@
- -
+ +
t('New');?>
- +
t('Nothing in here. Upload something!')?>
@@ -43,7 +43,7 @@ - + t( 'Name' ); ?> @@ -56,7 +56,7 @@ t( 'Modified' ); ?>t('Delete')?> <?php echo $l->t('Delete')?>" /> - +