summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-06-03 10:49:40 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-06-03 10:49:40 +0200
commitb62cb007715e649d9656c32bfe4b42599fd96983 (patch)
tree91e691fd2e79ba98da3f50c0005e8fd9fdc204d5
parent332eb39920d1cbd9e2fdf35e443e4ec8e65c628a (diff)
parent7ad7f591624049e4c0020039e2831e5160203e38 (diff)
downloadnextcloud-server-b62cb007715e649d9656c32bfe4b42599fd96983.tar.gz
nextcloud-server-b62cb007715e649d9656c32bfe4b42599fd96983.zip
Merge pull request #8833 from owncloud/fix-file-handling-option
fix empty file handling option
-rw-r--r--apps/files/templates/admin.php20
1 files changed, 11 insertions, 9 deletions
diff --git a/apps/files/templates/admin.php b/apps/files/templates/admin.php
index a75f0c94878..6fb99b18add 100644
--- a/apps/files/templates/admin.php
+++ b/apps/files/templates/admin.php
@@ -1,16 +1,18 @@
-<?php OCP\Util::addscript('files', 'admin'); ?>
+<?php if($_['uploadChangable']):?>
-<form name="filesForm" class="section" action="#" method="post">
- <h2><?php p($l->t('File handling')); ?></h2>
- <?php if($_['uploadChangable']):?>
+ <?php OCP\Util::addscript('files', 'admin'); ?>
+
+ <form name="filesForm" class="section" action="#" method="post">
+ <h2><?php p($l->t('File handling')); ?></h2>
<label for="maxUploadSize"><?php p($l->t( 'Maximum upload size' )); ?> </label>
<input type="text" name='maxUploadSize' id="maxUploadSize" value='<?php p($_['uploadMaxFilesize']) ?>'/>
<?php if($_['displayMaxPossibleUploadSize']):?>
(<?php p($l->t('max. possible: ')); p($_['maxPossibleUploadSize']) ?>)
<?php endif;?>
<br/>
- <?php endif;?>
- <input type="hidden" value="<?php p($_['requesttoken']); ?>" name="requesttoken" />
- <input type="submit" name="submitFilesAdminSettings" id="submitFilesAdminSettings"
- value="<?php p($l->t( 'Save' )); ?>"/>
-</form>
+ <input type="hidden" value="<?php p($_['requesttoken']); ?>" name="requesttoken" />
+ <input type="submit" name="submitFilesAdminSettings" id="submitFilesAdminSettings"
+ value="<?php p($l->t( 'Save' )); ?>"/>
+ </form>
+
+<?php endif;?>