From ac1ee2fe0c75a584f89af9600cd1e3c8a90732bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20S=C3=B8ndergaard=20Jensen?= Date: Mon, 25 Feb 2019 20:06:13 +0100 Subject: [PATCH] #4428 - Replaced Log.Add calls with AuditService.Add in translations --- .../businesslogic/translation/Translation.cs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/umbraco.cms/businesslogic/translation/Translation.cs b/src/umbraco.cms/businesslogic/translation/Translation.cs index 9c31cdb47d..83d0a4387c 100644 --- a/src/umbraco.cms/businesslogic/translation/Translation.cs +++ b/src/umbraco.cms/businesslogic/translation/Translation.cs @@ -4,12 +4,13 @@ using System.Text.RegularExpressions; using System.Web; using Umbraco.Core.Logging; using umbraco.BusinessLogic; -using umbraco.cms.businesslogic.language; -using umbraco.cms.businesslogic.property; -using umbraco.cms.businesslogic.task; using umbraco.cms.businesslogic.web; using Umbraco.Core; using Umbraco.Core.IO; +using Umbraco.Core.Models; +using Language = umbraco.cms.businesslogic.language.Language; +using Property = umbraco.cms.businesslogic.property.Property; +using Task = umbraco.cms.businesslogic.task.Task; namespace umbraco.cms.businesslogic.translation { @@ -32,8 +33,10 @@ namespace umbraco.cms.businesslogic.translation task.Save(); // Add log entry - // Note: not updated to LogHelper as LogTypes.SendToTranslate might be something special, not sure - Log.Add(LogTypes.SendToTranslate, user, node.Id, "Translator: " + translator.Name + ", Language: " + language.FriendlyName); + ApplicationContext.Current.Services.AuditService.Add(AuditType.SendToTranslate, + "Translator: " + translator.Name + ", Language: " + language.FriendlyName, + user.Id, + node.Id); // send it if (sendEmail) @@ -128,4 +131,4 @@ namespace umbraco.cms.businesslogic.translation return collection.Count; } } -} \ No newline at end of file +}