mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Blog -> BlogPart; BlogPost -> BlogPostPart
- updating part names to conform to a <name>Part convention --HG-- branch : dev rename : src/Orchard.Web/Modules/Orchard.Blogs/Drivers/BlogDriver.cs => src/Orchard.Web/Modules/Orchard.Blogs/Drivers/BlogPartDriver.cs rename : src/Orchard.Web/Modules/Orchard.Blogs/Models/Blog.cs => src/Orchard.Web/Modules/Orchard.Blogs/Models/BlogPart.cs rename : src/Orchard.Web/Modules/Orchard.Blogs/Models/BlogArchiveRecord.cs => src/Orchard.Web/Modules/Orchard.Blogs/Models/BlogPartArchiveRecord.cs rename : src/Orchard.Web/Modules/Orchard.Blogs/Models/BlogRecord.cs => src/Orchard.Web/Modules/Orchard.Blogs/Models/BlogPartRecord.cs rename : src/Orchard.Web/Modules/Orchard.Blogs/Models/BlogPost.cs => src/Orchard.Web/Modules/Orchard.Blogs/Models/BlogPostPart.cs
This commit is contained in:
@@ -61,9 +61,9 @@ namespace Orchard.Blogs.Controllers {
|
||||
public ActionResult LiveWriterManifest(string blogSlug) {
|
||||
Logger.Debug("Live Writer Manifest requested");
|
||||
|
||||
Blog blog = _blogService.Get(blogSlug);
|
||||
BlogPart blogPart = _blogService.Get(blogSlug);
|
||||
|
||||
if (blog == null)
|
||||
if (blogPart == null)
|
||||
return new NotFoundResult();
|
||||
|
||||
const string manifestUri = "http://schemas.microsoft.com/wlw/manifest/weblog";
|
||||
@@ -86,9 +86,9 @@ namespace Orchard.Blogs.Controllers {
|
||||
public ActionResult Rsd(string blogSlug) {
|
||||
Logger.Debug("RSD requested");
|
||||
|
||||
Blog blog = _blogService.Get(blogSlug);
|
||||
BlogPart blogPart = _blogService.Get(blogSlug);
|
||||
|
||||
if (blog == null)
|
||||
if (blogPart == null)
|
||||
return new NotFoundResult();
|
||||
|
||||
const string manifestUri = "http://archipelago.phrasewise.com/rsd";
|
||||
@@ -106,7 +106,7 @@ namespace Orchard.Blogs.Controllers {
|
||||
new XAttribute("name", "MetaWeblog"),
|
||||
new XAttribute("preferred", true),
|
||||
new XAttribute("apiLink", url),
|
||||
new XAttribute("blogID", blog.Id))));
|
||||
new XAttribute("blogID", blogPart.Id))));
|
||||
|
||||
var doc = new XDocument(new XElement(
|
||||
XName.Get("rsd", manifestUri),
|
||||
|
Reference in New Issue
Block a user