Don't try to display bigfile limit settings if no bigfile plugin enabled

This commit is contained in:
shortcutme 2019-08-09 13:17:48 +02:00
parent 30865c9d1c
commit 0bbeede975
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -321,6 +321,7 @@ class UiWebsocketPlugin(object):
<input type="checkbox" class="checkbox" id="checkbox-autodownloadoptional" {checked}/><div class="checkbox-skin"></div>
"""))
if hasattr(config, "autodownload_bigfile_size_limit"):
autodownload_bigfile_size_limit = int(site.settings.get("autodownload_bigfile_size_limit", config.autodownload_bigfile_size_limit))
body.append(_("""
<div class='settings-autodownloadoptional'>