diff --git a/Helper/FileHelper.cs b/Helper/FileHelper.cs index c4f1838..ed3bc2e 100644 --- a/Helper/FileHelper.cs +++ b/Helper/FileHelper.cs @@ -105,7 +105,7 @@ namespace CarCareTracker.Helper var translationPath = Path.Combine(tempPath, "translations"); var dataPath = Path.Combine(tempPath, StaticHelper.DbName); var widgetPath = Path.Combine(tempPath, StaticHelper.AdditionalWidgetsPath); - var configPath = Path.Combine(tempPath, "config/userConfig.json"); + var configPath = Path.Combine(tempPath, StaticHelper.LegacyUserConfigPath); if (Directory.Exists(imagePath)) { var existingPath = Path.Combine(_webEnv.ContentRootPath, "data", "images"); diff --git a/Helper/StaticHelper.cs b/Helper/StaticHelper.cs index 7b3036c..17dd66f 100644 --- a/Helper/StaticHelper.cs +++ b/Helper/StaticHelper.cs @@ -15,6 +15,7 @@ namespace CarCareTracker.Helper public const string VersionNumber = "1.4.3"; public const string DbName = "data/cartracker.db"; public const string UserConfigPath = "data/config/userConfig.json"; + public const string LegacyUserConfigPath = "config/userConfig.json"; public const string AdditionalWidgetsPath = "data/widgets.html"; public const string GenericErrorMessage = "An error occurred, please try again later"; public const string ReminderEmailTemplate = "defaults/reminderemailtemplate.txt"; @@ -363,10 +364,9 @@ namespace CarCareTracker.Helper var docsPath = Path.Combine(webRootPath, "documents"); var translationPath = Path.Combine(webRootPath, "translations"); var tempPath = Path.Combine(webRootPath, "temp"); - var configPath = "config/userConfig.json"; - if (File.Exists(configPath)) + if (File.Exists(LegacyUserConfigPath)) { - File.Move(configPath, UserConfigPath, true); + File.Move(LegacyUserConfigPath, UserConfigPath, true); } if (Directory.Exists(imagePath)) {