From 5e4a23ea8434cdecb253447142993338945073c0 Mon Sep 17 00:00:00 2001
From: Shannon Deminick
" + ui.Text("view") + " " + d.Text + ""; } diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/channels/UmbracoMetaWeblogAPI.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/channels/UmbracoMetaWeblogAPI.cs index 987c5965f6..d870b59bec 100644 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/channels/UmbracoMetaWeblogAPI.cs +++ b/src/Umbraco.Web/umbraco.presentation/umbraco/channels/UmbracoMetaWeblogAPI.cs @@ -83,7 +83,7 @@ namespace umbraco.presentation.channels if (publish) { - doc.Publish(new User(username)); + doc.SaveAndPublish(new User(username)); } return true; } @@ -401,7 +401,7 @@ namespace umbraco.presentation.channels if (publish) { - doc.Publish(new User(username)); + doc.SaveAndPublish(new User(username)); } return doc.Id.ToString(); } diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/webservices/nodeSorter.asmx.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/webservices/nodeSorter.asmx.cs index eda8ee7bee..e767cf5fd9 100644 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/webservices/nodeSorter.asmx.cs +++ b/src/Umbraco.Web/umbraco.presentation/umbraco/webservices/nodeSorter.asmx.cs @@ -7,6 +7,7 @@ using System.Xml; using Umbraco.Core.Logging; using Umbraco.Core.Persistence.Caching; using Umbraco.Web; +using Umbraco.Web.Security; using umbraco.BasePages; using umbraco.BusinessLogic.Actions; using umbraco.cms.businesslogic.web; @@ -98,7 +99,7 @@ namespace umbraco.presentation.webservices // refresh the xml for the sorting to work if (published) { - document.Publish(BusinessLogic.User.GetCurrent()); + document.SaveAndPublish(WebSecurity.CurrentUser); document.refreshXmlSortOrder(); } } diff --git a/src/umbraco.cms/businesslogic/skinning/tasks/ModifyPageProperty.cs b/src/umbraco.cms/businesslogic/skinning/tasks/ModifyPageProperty.cs index 933715c4ad..cba9da77fb 100644 --- a/src/umbraco.cms/businesslogic/skinning/tasks/ModifyPageProperty.cs +++ b/src/umbraco.cms/businesslogic/skinning/tasks/ModifyPageProperty.cs @@ -34,7 +34,7 @@ namespace umbraco.cms.businesslogic.skinning.tasks d.OriginalValue = doc.getProperty(PropertyAlias).Value.ToString(); doc.getProperty(PropertyAlias).Value = Value; - doc.Publish(new BusinessLogic.User(0)); + doc.SaveAndPublish(new BusinessLogic.User(0)); d.NewValue = Value; d.TaskExecutionStatus = TaskExecutionStatus.Completed;