diff options
author | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2015-01-15 00:43:39 +0300 |
---|---|---|
committer | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2015-01-15 00:43:39 +0300 |
commit | 453d6760fb7cb40cf490ffbe5a329db72bf09026 (patch) | |
tree | d3bafac987ca7faccce905572ded8c4793bcfdbe /templates/documents.php | |
parent | 4865408bb47253f6365f0ad7f1b17c689c0fc1dd (diff) |
Do not load previews when they are disabled. Ref #425
Diffstat (limited to 'templates/documents.php')
-rwxr-xr-x | templates/documents.php | 3 |
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']) ?>" /> |