Mercurial > hg > orthanc
diff Plugins/Engine/PluginsManager.cpp @ 1323:5a92665dee23
Sample plugin: Serve folders
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 13 Feb 2015 14:28:16 +0100 |
parents | 7b6925b0890d |
children | afaa55d42ddd |
line wrap: on
line diff
--- a/Plugins/Engine/PluginsManager.cpp Fri Feb 13 13:28:01 2015 +0100 +++ b/Plugins/Engine/PluginsManager.cpp Fri Feb 13 14:28:16 2015 +0100 @@ -292,7 +292,10 @@ } else { - if (boost::filesystem::extension(it->path()) == PLUGIN_EXTENSION) + std::string extension = boost::filesystem::extension(it->path()); + Toolbox::ToLowerCase(extension); + + if (extension == PLUGIN_EXTENSION) { LOG(INFO) << "Found a shared library: " << it->path();