diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-04-09 11:38:48 +0200 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-04-09 11:38:48 +0200 |
commit | 2f42619303627db401e469e2fd65123cd794a378 (patch) | |
tree | fb9944f9838b9d19be3e2ce39e6be6b71f9c469c /config.cpp | |
parent | f5e2c43abe9477fba6255c734faf2822e7f2f9c5 (diff) |
Load only configured plugins, add plugins
Diffstat (limited to 'config.cpp')
-rw-r--r-- | config.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -215,3 +215,14 @@ std::string Config::DocRoot(const Socket& socket, const std::string& requested_h return result; } +bool Config::PluginIsConfigured(const std::string& name) const +{ + for (const auto& site: m_sites) { + for (const auto& path: site.paths) { + if (path.params.find("plugin") != path.params.end()) + return true; + } + } + return false; +} + |