mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixing XmlRpc with Autoroute
--HG-- branch : 1.x
This commit is contained in:
@@ -211,7 +211,7 @@ namespace Orchard.Blogs.Services {
|
|||||||
//AutoroutePart
|
//AutoroutePart
|
||||||
dynamic dBlogPost = blogPost;
|
dynamic dBlogPost = blogPost;
|
||||||
if (dBlogPost.AutoroutePart!=null){
|
if (dBlogPost.AutoroutePart!=null){
|
||||||
dBlogPost.AutoroutePart.Alias = slug;
|
dBlogPost.AutoroutePart.DisplayAlias = slug;
|
||||||
}
|
}
|
||||||
|
|
||||||
_contentManager.Create(blogPost, VersionOptions.Draft);
|
_contentManager.Create(blogPost, VersionOptions.Draft);
|
||||||
@@ -294,7 +294,7 @@ namespace Orchard.Blogs.Services {
|
|||||||
//AutoroutePart
|
//AutoroutePart
|
||||||
dynamic dBlogPost = blogPost;
|
dynamic dBlogPost = blogPost;
|
||||||
if (dBlogPost.AutoroutePart != null) {
|
if (dBlogPost.AutoroutePart != null) {
|
||||||
dBlogPost.AutoroutePart.Alias = slug;
|
dBlogPost.AutoroutePart.DisplayAlias = slug;
|
||||||
}
|
}
|
||||||
|
|
||||||
// try to get the UTC timezone by default
|
// try to get the UTC timezone by default
|
||||||
|
|||||||
Reference in New Issue
Block a user