From e251ccf456ecfb922a210466e28735cd182c4cee Mon Sep 17 00:00:00 2001 From: Shannon Deminick Date: Sun, 9 Dec 2012 03:53:16 +0500 Subject: [PATCH] Obsoletes the NiceUrl() and NiceUrlWithDomain() methods on IPublishedContent in favor of Url() and UrlWithDomain() --- src/Umbraco.Web/PublishedContentExtensions.cs | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/Umbraco.Web/PublishedContentExtensions.cs b/src/Umbraco.Web/PublishedContentExtensions.cs index 2669ed29f3..b6ecbfcda8 100644 --- a/src/Umbraco.Web/PublishedContentExtensions.cs +++ b/src/Umbraco.Web/PublishedContentExtensions.cs @@ -46,7 +46,18 @@ namespace Umbraco.Web /// /// /// + [Obsolete("NiceUrl() is obsolete, use the Url() method instead")] public static string NiceUrl(this IPublishedContent doc) + { + return doc.Url(); + } + + /// + /// Gets the Url for the content item + /// + /// + /// + public static string Url(this IPublishedContent doc) { switch (doc.ItemType) { @@ -68,7 +79,18 @@ namespace Umbraco.Web /// /// /// + [Obsolete("NiceUrlWithDomain() is obsolete, use the UrlWithDomain() method instead")] public static string NiceUrlWithDomain(this IPublishedContent doc) + { + return doc.UrlWithDomain(); + } + + /// + /// Gets the UrlWithDomain for the content item + /// + /// + /// + public static string UrlWithDomain(this IPublishedContent doc) { switch (doc.ItemType) {