mirror of
https://github.com/hargata/lubelog.git
synced 2025-12-10 00:46:08 -06:00
use a static string instead.
This commit is contained in:
parent
24fb663599
commit
af28753558
@ -105,7 +105,7 @@ namespace CarCareTracker.Helper
|
|||||||
var translationPath = Path.Combine(tempPath, "translations");
|
var translationPath = Path.Combine(tempPath, "translations");
|
||||||
var dataPath = Path.Combine(tempPath, StaticHelper.DbName);
|
var dataPath = Path.Combine(tempPath, StaticHelper.DbName);
|
||||||
var widgetPath = Path.Combine(tempPath, StaticHelper.AdditionalWidgetsPath);
|
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))
|
if (Directory.Exists(imagePath))
|
||||||
{
|
{
|
||||||
var existingPath = Path.Combine(_webEnv.ContentRootPath, "data", "images");
|
var existingPath = Path.Combine(_webEnv.ContentRootPath, "data", "images");
|
||||||
|
|||||||
@ -15,6 +15,7 @@ namespace CarCareTracker.Helper
|
|||||||
public const string VersionNumber = "1.4.3";
|
public const string VersionNumber = "1.4.3";
|
||||||
public const string DbName = "data/cartracker.db";
|
public const string DbName = "data/cartracker.db";
|
||||||
public const string UserConfigPath = "data/config/userConfig.json";
|
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 AdditionalWidgetsPath = "data/widgets.html";
|
||||||
public const string GenericErrorMessage = "An error occurred, please try again later";
|
public const string GenericErrorMessage = "An error occurred, please try again later";
|
||||||
public const string ReminderEmailTemplate = "defaults/reminderemailtemplate.txt";
|
public const string ReminderEmailTemplate = "defaults/reminderemailtemplate.txt";
|
||||||
@ -363,10 +364,9 @@ namespace CarCareTracker.Helper
|
|||||||
var docsPath = Path.Combine(webRootPath, "documents");
|
var docsPath = Path.Combine(webRootPath, "documents");
|
||||||
var translationPath = Path.Combine(webRootPath, "translations");
|
var translationPath = Path.Combine(webRootPath, "translations");
|
||||||
var tempPath = Path.Combine(webRootPath, "temp");
|
var tempPath = Path.Combine(webRootPath, "temp");
|
||||||
var configPath = "config/userConfig.json";
|
if (File.Exists(LegacyUserConfigPath))
|
||||||
if (File.Exists(configPath))
|
|
||||||
{
|
{
|
||||||
File.Move(configPath, UserConfigPath, true);
|
File.Move(LegacyUserConfigPath, UserConfigPath, true);
|
||||||
}
|
}
|
||||||
if (Directory.Exists(imagePath))
|
if (Directory.Exists(imagePath))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user