Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>2015-01-15 00:43:39 +0300
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>2015-01-15 00:43:39 +0300
commit453d6760fb7cb40cf490ffbe5a329db72bf09026 (patch)
treed3bafac987ca7faccce905572ded8c4793bcfdbe /templates/documents.php
parent4865408bb47253f6365f0ad7f1b17c689c0fc1dd (diff)
Do not load previews when they are disabled. Ref #425
Diffstat (limited to 'templates/documents.php')
-rwxr-xr-xtemplates/documents.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/documents.php b/templates/documents.php
index 11bca4ce..07b1bb06 100755
--- a/templates/documents.php
+++ b/templates/documents.php
@@ -35,4 +35,7 @@
</ul>
</div>
<input type="hidden" id="webodf-unstable" value="<?php p($_['useUnstable']) ?>" />
+<?php if ($_['enable_previews']): ?>
+<input type="hidden" id="previews_enabled" value="<?php p($_['enable_previews']) ?>" />
+<?php endif; ?>
<input type="hidden" name="allowShareWithLink" id="allowShareWithLink" value="<?php p($_['allowShareWithLink']) ?>" />