summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2012-11-22 02:53:10 -0800
committerThomas Müller <thomas.mueller@tmit.eu>2012-11-22 02:53:10 -0800
commitc773d071ee947a9065c492a356367ebbd78bc169 (patch)
treec144fd4854c2fc1c45e8f08e8c7a1d02d0b4fc76
parentd4ec77e08b6f6d0e1c9fc570199bcd915b25671e (diff)
parent2af7ac78d21306e10894fe97acdd79a1356e7af5 (diff)
downloadnextcloud-server-c773d071ee947a9065c492a356367ebbd78bc169.tar.gz
nextcloud-server-c773d071ee947a9065c492a356367ebbd78bc169.zip
Merge pull request #506 from owncloud/fix_505
refs #505 - defining publicListView based on template parameter
-rw-r--r--apps/files_sharing/templates/public.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php
index 35cca7c42dc..647e1e08a31 100644
--- a/apps/files_sharing/templates/public.php
+++ b/apps/files_sharing/templates/public.php
@@ -1,3 +1,11 @@
+<script type="text/javascript">
+ <?php if ( array_key_exists('publicListView', $_) && $_['publicListView'] == true ) {
+ echo "var publicListView = true;";
+ } else {
+ echo "var publicListView = false;";
+ }
+ ?>
+</script>
<input type="hidden" name="dir" value="<?php echo $_['dir'] ?>" id="dir">
<input type="hidden" name="downloadURL" value="<?php echo $_['downloadURL'] ?>" id="downloadURL">
<input type="hidden" name="filename" value="<?php echo $_['filename'] ?>" id="filename">