Fix string interpolation for health check messages

This commit is contained in:
Jeavon Leopold
2021-09-09 13:01:25 +01:00
committed by Sebastiaan Janssen
parent 5fadb238ee
commit fb466f4309

View File

@@ -87,8 +87,8 @@ namespace Umbraco.Web.HealthCheck.Checks.Security
}
message = success
? TextService.Localize($"healthcheck", "{_localizedTextPrefix}CheckHeaderFound")
: TextService.Localize($"healthcheck", "{_localizedTextPrefix}CheckHeaderNotFound");
? TextService.Localize($"healthcheck", $"{_localizedTextPrefix}CheckHeaderFound")
: TextService.Localize($"healthcheck", $"{_localizedTextPrefix}CheckHeaderNotFound");
}
catch (Exception ex)
{
@@ -101,7 +101,7 @@ namespace Umbraco.Web.HealthCheck.Checks.Security
actions.Add(new HealthCheckAction(SetHeaderInConfigAction, Id)
{
Name = TextService.Localize("healthcheck", "setHeaderInConfig"),
Description = TextService.Localize($"healthcheck", "{_localizedTextPrefix}SetHeaderInConfigDescription")
Description = TextService.Localize($"healthcheck", $"{_localizedTextPrefix}SetHeaderInConfigDescription")
});
}