]> source.dussan.org Git - nextcloud-server.git/commitdiff
refs #505 - defining publicListView based on template parameter
authorThomas Mueller <thomas.mueller@tmit.eu>
Sun, 18 Nov 2012 11:27:55 +0000 (12:27 +0100)
committerThomas Mueller <thomas.mueller@tmit.eu>
Sun, 18 Nov 2012 11:28:04 +0000 (12:28 +0100)
apps/files_sharing/templates/public.php

index 35cca7c42dc9c2832c5b3923fdc681d3ddfed6f8..647e1e08a31e4e511f21daa15d915bd34b793b51 100644 (file)
@@ -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">