diff --git a/martor/__init__.py b/martor/__init__.py index e32021334..1fa949586 100644 --- a/martor/__init__.py +++ b/martor/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -__VERSION__ = '1.4.5' +__VERSION__ = '1.4.6' __AUTHOR__ = 'Agus Makmun (Summon Agus)' __AUTHOR_EMAIL__ = 'summon.agus@gmail.com' diff --git a/martor/widgets.py b/martor/widgets.py index c3aaad3b7..5c77ac9f2 100644 --- a/martor/widgets.py +++ b/martor/widgets.py @@ -72,11 +72,11 @@ class Media: 'martor/js/martor.js', ) - if MARTOR_ENABLE_CONFIGS['spellcheck'] == 'true': + if MARTOR_ENABLE_CONFIGS.get('spellcheck') == 'true': # Adding the following scripts to the end of the tuple in case it affects behaviour js = ('plugins/js/typo.js', 'plugins/js/spellcheck.js').__add__(js) - if MARTOR_ENABLE_CONFIGS['jquery'] == 'true': + if MARTOR_ENABLE_CONFIGS.get('jquery') == 'true': js = ('plugins/js/jquery.min.js',).__add__(js)