Replaces all calls of Document.Publish to the lesser obsoleted method Document.SaveAndPublish which is what Publish was calling anyways.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using Umbraco.Web.Security;
|
||||
using umbraco.cms.businesslogic.property;
|
||||
using umbraco.cms.businesslogic.propertytype;
|
||||
using umbraco.cms.businesslogic.web;
|
||||
@@ -96,7 +97,7 @@ namespace umbraco.presentation.LiveEditing.Modules.ItemEditing
|
||||
if(!publishedDocuments.Contains(NodeId.Value))
|
||||
{
|
||||
Document document = new Document(NodeId.Value);
|
||||
document.Publish(UmbracoEnsuredPage.CurrentUser);
|
||||
document.SaveAndPublish(WebSecurity.CurrentUser);
|
||||
|
||||
publishedDocuments.Add(NodeId.Value);
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace umbraco.presentation.actions
|
||||
deleteMessage.Text = ui.Text("editContentPublishedHeader");
|
||||
|
||||
confirm.Visible = false;
|
||||
d.Publish(getUser());
|
||||
d.SaveAndPublish(UmbracoUser);
|
||||
|
||||
deleted.Text = ui.Text("editContentPublishedHeader") + " ('" + d.Text + "') " + ui.Text("editContentPublishedText") + "</p><p><a href=\"" + library.NiceUrl(d.Id) + "\"> " + ui.Text("view") + " " + d.Text + "</a>";
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user