summaryrefslogtreecommitdiffhomepage
path: root/config.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-04-09 11:38:48 +0200
committerRoland Reichwein <mail@reichwein.it>2020-04-09 11:38:48 +0200
commit2f42619303627db401e469e2fd65123cd794a378 (patch)
treefb9944f9838b9d19be3e2ce39e6be6b71f9c469c /config.cpp
parentf5e2c43abe9477fba6255c734faf2822e7f2f9c5 (diff)
Load only configured plugins, add plugins
Diffstat (limited to 'config.cpp')
-rw-r--r--config.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/config.cpp b/config.cpp
index baf611b..0d1eb34 100644
--- a/config.cpp
+++ b/config.cpp
@@ -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;
+}
+