Mercurial > hg > orthanc
diff Plugins/Samples/ServeFolders/Plugin.cpp @ 2268:ce5c13b95dac
New function: OrthancPluginRegisterIncomingHttpRequestFilter2()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 22 Feb 2017 21:49:16 +0100 |
parents | a3a65de1840f |
children | b382879072a5 |
line wrap: on
line diff
--- a/Plugins/Samples/ServeFolders/Plugin.cpp Wed Feb 22 13:32:05 2017 +0100 +++ b/Plugins/Samples/ServeFolders/Plugin.cpp Wed Feb 22 21:49:16 2017 +0100 @@ -416,13 +416,10 @@ /* Check the version of the Orthanc core */ if (OrthancPluginCheckVersion(context_) == 0) { - char info[1024]; - sprintf(info, "Your version of Orthanc (%s) must be above %d.%d.%d to run this plugin", - context_->orthancVersion, - ORTHANC_PLUGINS_MINIMAL_MAJOR_NUMBER, - ORTHANC_PLUGINS_MINIMAL_MINOR_NUMBER, - ORTHANC_PLUGINS_MINIMAL_REVISION_NUMBER); - OrthancPluginLogError(context_, info); + OrthancPlugins::ReportMinimalOrthancVersion(context_, + ORTHANC_PLUGINS_MINIMAL_MAJOR_NUMBER, + ORTHANC_PLUGINS_MINIMAL_MINOR_NUMBER, + ORTHANC_PLUGINS_MINIMAL_REVISION_NUMBER); return -1; }