Skip to content

Commit

Permalink
Commented out the GetCultureInfo method so it isn't visible in the DLL
Browse files Browse the repository at this point in the history
  • Loading branch information
abjerner committed Dec 15, 2021
1 parent d172e50 commit 2d8891f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Skybrud.Essentials.Umbraco/PublishedContentExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ namespace Skybrud.Essentials.Umbraco {
/// </summary>
public static class PublishedContentExtensions {

public static CultureInfo GetCultureInfo(this IPublishedContent content) {
throw new NotImplementedException();
//if (content == null) return CultureInfo.GetCultureInfo(global::Umbraco.Web.Composing.Current.UmbracoContext.Domains.DefaultCulture);
//string code = content.GetCultureFromDomains();
//return string.IsNullOrWhiteSpace(code) ? GetCultureInfo(content.Parent) : CultureInfo.GetCultureInfo(code);
}
//public static CultureInfo GetCultureInfo(this IPublishedContent content) {
// throw new NotImplementedException();
// //if (content == null) return CultureInfo.GetCultureInfo(global::Umbraco.Web.Composing.Current.UmbracoContext.Domains.DefaultCulture);
// //string code = content.GetCultureFromDomains();
// //return string.IsNullOrWhiteSpace(code) ? GetCultureInfo(content.Parent) : CultureInfo.GetCultureInfo(code);
//}

}

Expand Down

0 comments on commit 2d8891f

Please sign in to comment.