mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
Merge a6c8780891 into a576f69c12
This commit is contained in:
commit
6c83099e26
3 changed files with 12 additions and 3 deletions
|
|
@ -227,6 +227,8 @@ def plugin_module_names():
|
|||
|
||||
def initialize(app):
|
||||
for module_name, external in plugin_module_names():
|
||||
plugin = load_and_initialize_plugin(module_name, external, (app, settings))
|
||||
if plugin:
|
||||
plugins.register(plugin)
|
||||
# it is possible to block plugins from being registered into plugin chain in settings.yml
|
||||
if module_name not in settings['blocked_plugins']:
|
||||
plugin = load_and_initialize_plugin(module_name, external, (app, settings))
|
||||
if plugin:
|
||||
plugins.register(plugin)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue