diff Google/GoogleStoragePlugin.cpp @ 81:e29987d80ecf

fix
author Alain Mazy <am@osimis.io>
date Mon, 17 Oct 2022 13:38:32 +0200
parents b3787f4aa16a
children f30b9acf80f0
line wrap: on
line diff
--- a/Google/GoogleStoragePlugin.cpp	Sat Oct 15 07:49:30 2022 +0200
+++ b/Google/GoogleStoragePlugin.cpp	Mon Oct 17 13:38:32 2022 +0200
@@ -238,14 +238,14 @@
   bool enableLegacyStorageStructure;
   bool storageContainsUnknownFiles;
 
-  if (!orthancConfig.IsSection(PLUGIN_SECTION))
+  if (!orthancConfig.IsSection(GetConfigurationSectionName()))
   {
     OrthancPlugins::LogWarning(std::string(GetStoragePluginName()) + " plugin, section missing.  Plugin is not enabled.");
     return nullptr;
   }
 
   OrthancPlugins::OrthancConfiguration pluginSection;
-  orthancConfig.GetSection(pluginSection, PLUGIN_SECTION);
+  orthancConfig.GetSection(pluginSection, GetConfigurationSectionName());
 
   if (!BaseStorage::ReadCommonConfiguration(enableLegacyStorageStructure, storageContainsUnknownFiles, pluginSection))
   {