[Pkg-owncloud-commits] [owncloud] 208/394: refs #505 - defining publicListView based on template parameter

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:12:06 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.

commit 253e5f3cffdf9cff021cef7725aa7f30cb9825dd
Author: Thomas Mueller <thomas.mueller at tmit.eu>
Date:   Sun Nov 18 12:27:55 2012 +0100

    refs #505 - defining publicListView based on template parameter
---
 apps/files_sharing/templates/public.php |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php
index ef81e29..b8ee34e 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">

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list