diff options
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; +} + |