https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6587 - Moved controllers: HealthCheckController + All localization files + fixed issues with MapPath from wwwroot to content root

This commit is contained in:
Bjarke Berg
2020-05-25 14:50:51 +02:00
parent ee3615e36d
commit 2c2d70c500
37 changed files with 4290 additions and 4311 deletions

View File

@@ -49,6 +49,16 @@ namespace Umbraco.Core.Services.Implement
_logger = logger;
_cache = appCaches.RuntimeCache;
if (fileSourceFolder.Exists == false)
{
Current.Logger.Warn<LocalizedTextServiceFileSources>("The folder does not exist: {FileSourceFolder}, therefore no sources will be discovered", fileSourceFolder.FullName);
}
else
{
_fileSourceFolder = fileSourceFolder;
_supplementFileSources = supplementFileSources;
}
//Create the lazy source for the _xmlSources
_xmlSources = new Lazy<Dictionary<CultureInfo, Lazy<XDocument>>>(() =>
{
@@ -124,15 +134,7 @@ namespace Umbraco.Core.Services.Implement
return result;
});
if (fileSourceFolder.Exists == false)
{
Current.Logger.Warn<LocalizedTextServiceFileSources>("The folder does not exist: {FileSourceFolder}, therefore no sources will be discovered", fileSourceFolder.FullName);
}
else
{
_fileSourceFolder = fileSourceFolder;
_supplementFileSources = supplementFileSources;
}
}
/// <summary>