summaryrefslogtreecommitdiffstats
path: root/apps/files/admin.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-06-06 00:24:15 +0200
committerRobin Appelman <icewind@owncloud.com>2012-06-06 00:24:15 +0200
commita3c1f70be423eb4e6bc76164da9d080ffe66305c (patch)
treecad80b838edd95f6bd0977d09ba08b1ac1a855c2 /apps/files/admin.php
parent549889d3cbc75e184f27973d7e020b7985189af1 (diff)
downloadnextcloud-server-a3c1f70be423eb4e6bc76164da9d080ffe66305c.tar.gz
nextcloud-server-a3c1f70be423eb4e6bc76164da9d080ffe66305c.zip
dont show config option for file upload size if we cant write the new value
Diffstat (limited to 'apps/files/admin.php')
-rw-r--r--apps/files/admin.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files/admin.php b/apps/files/admin.php
index b0c2b35c696..d05eb7267b7 100644
--- a/apps/files/admin.php
+++ b/apps/files/admin.php
@@ -51,8 +51,10 @@ $allowZipDownload = intval(OCP\Config::getSystemValue('allowZipDownload', true))
OCP\App::setActiveNavigationEntry( "files_administration" );
+$htaccessWritable=is_writable(OC::$SERVERROOT.'/.htaccess');
+
$tmpl = new OCP\Template( 'files', 'admin' );
-$tmpl->assign( 'htaccessWorking', $htaccessWorking );
+$tmpl->assign( 'uploadChangable', $htaccessWorking and $htaccessWritable );
$tmpl->assign( 'uploadMaxFilesize', $maxUploadFilesize);
$tmpl->assign( 'maxPossibleUploadSize', OCP\Util::humanFileSize(PHP_INT_MAX));
$tmpl->assign( 'allowZipDownload', $allowZipDownload);