summaryrefslogtreecommitdiffhomepage
path: root/config.cpp
diff options
context:
space:
mode:
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;
+}
+