summaryrefslogtreecommitdiffstats
path: root/files
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2012-03-21 13:10:02 +0100
committerArthur Schiwon <blizzz@owncloud.com>2012-03-21 13:10:02 +0100
commitd91bc9b317b440a0720fe9b7ca3f43538d840af8 (patch)
tree3cd77da5428cc7c0f0fa55a3f2a05bd7e0392833 /files
parent7c815054c7bc43d1147294faddbb822c099a1f53 (diff)
downloadnextcloud-server-d91bc9b317b440a0720fe9b7ca3f43538d840af8.tar.gz
nextcloud-server-d91bc9b317b440a0720fe9b7ca3f43538d840af8.zip
use placeholder in template file
Diffstat (limited to 'files')
-rw-r--r--files/index.php1
-rw-r--r--files/templates/index.php4
2 files changed, 3 insertions, 2 deletions
diff --git a/files/index.php b/files/index.php
index 79261e495be..82d09608924 100644
--- a/files/index.php
+++ b/files/index.php
@@ -98,6 +98,7 @@ $tmpl->assign( 'readonly', !OC_Filesystem::is_writable($dir));
$tmpl->assign( "files", $files );
$tmpl->assign( 'uploadMaxFilesize', $maxUploadFilesize);
$tmpl->assign( 'uploadMaxHumanFilesize', OC_Helper::humanFileSize($maxUploadFilesize));
+$tmpl->assign( 'allowZipDownload', intval(OC_Config::getValue('allowZipDownload', true)));
$tmpl->printPage();
?>
diff --git a/files/templates/index.php b/files/templates/index.php
index 3302cfa9291..da1e58ce137 100644
--- a/files/templates/index.php
+++ b/files/templates/index.php
@@ -40,7 +40,7 @@
<?php if(!isset($_['readonly']) || !$_['readonly']) { ?><input type="checkbox" id="select_all" /><?php } ?>
<span class='name'><?php echo $l->t( 'Name' ); ?></span>
<span class='selectedActions'>
- <?php if(OC_Config::getValue('allowZipDownload', true)) : ?>
+ <?php if($_['allowZipDownload']) : ?>
<a href="" title="<?php echo $l->t('Download')?>" class="download"><img class='svg' alt="Download" src="<?php echo image_path("core", "actions/download.svg"); ?>" /></a>
<?php endif; ?>
<a href="" title="Share" class="share"><img class='svg' alt="Share" src="<?php echo image_path("core", "actions/share.svg"); ?>" /></a>
@@ -70,4 +70,4 @@
</div>
<!-- config hints for javascript -->
-<input type="hidden" name="allowZipDownload" id="allowZipDownload" value="<?php echo intval(OC_Config::getValue('allowZipDownload', true)); ?>" /> \ No newline at end of file
+<input type="hidden" name="allowZipDownload" id="allowZipDownload" value="<?php echo $_['allowZipDownload']; ?>" /> \ No newline at end of file