diff --git a/src/Umbraco.Core/Services/ContentService.cs b/src/Umbraco.Core/Services/ContentService.cs index 266604aba6..6e10502ab7 100644 --- a/src/Umbraco.Core/Services/ContentService.cs +++ b/src/Umbraco.Core/Services/ContentService.cs @@ -469,15 +469,15 @@ namespace Umbraco.Core.Services /// /// This will rebuild the xml structures for content in the database. - /// - /// Optional Id of the User issueing the publishing - /// True if publishing succeeded, otherwise False + /// + /// Optional Id of the User issueing the publishing + /// True if publishing succeeded, otherwise False /// /// This is used for when a document type alias or a document type property is changed, the xml will need to /// be regenerated. /// - public bool RePublishAll(int userId = 0) - { + public bool RePublishAll(int userId = 0) + { try { RePublishAllDo(); @@ -488,7 +488,7 @@ namespace Umbraco.Core.Services LogHelper.Error("An error occurred executing RePublishAll", ex); return false; } - } + } /// /// Publishes a single object @@ -1215,9 +1215,9 @@ namespace Umbraco.Core.Services uow.Database.Insert(poco); } } - Audit.Add(AuditTypes.Publish, "RePublish All completed, the xml has been regenerated in the database", 0, -1); } + } } /// @@ -1429,12 +1429,12 @@ namespace Umbraco.Core.Services ? uow.Database.Update( "SET xml = @Xml, timestamp = @Timestamp WHERE nodeId = @Id AND versionId = @Version", new - { - Xml = previewPoco.Xml, - Timestamp = previewPoco.Timestamp, - Id = previewPoco.NodeId, - Version = previewPoco.VersionId - }) + { + Xml = previewPoco.Xml, + Timestamp = previewPoco.Timestamp, + Id = previewPoco.NodeId, + Version = previewPoco.VersionId + }) : Convert.ToInt32(uow.Database.Insert(previewPoco)); if (published) @@ -1470,6 +1470,7 @@ namespace Umbraco.Core.Services return new Attempt(publishStatus.StatusType == PublishStatusType.Success, publishStatus); } + } } /// diff --git a/src/Umbraco.Core/Services/ContentTypeService.cs b/src/Umbraco.Core/Services/ContentTypeService.cs index 3630b9893b..a5a1048e65 100644 --- a/src/Umbraco.Core/Services/ContentTypeService.cs +++ b/src/Umbraco.Core/Services/ContentTypeService.cs @@ -417,6 +417,7 @@ namespace Umbraco.Core.Services Audit.Add(AuditTypes.Delete, string.Format("Delete MediaTypes performed by user"), userId, -1); } + } } ///