Don't try to display bigfile limit settings if no bigfile plugin enabled
This commit is contained in:
parent
30865c9d1c
commit
0bbeede975
1 changed files with 9 additions and 8 deletions
|
@ -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'>
|
||||
|
|
Loading…
Reference in a new issue