fixes build

This commit is contained in:
Shannon
2014-02-19 17:08:55 +11:00
parent fe8098adac
commit 64246b4eef

View File

@@ -14,6 +14,7 @@ namespace Umbraco.Web
//this only takes the crop json into account
public static string Crop(this IPublishedContent mediaItem, string propertyAlias, string cropAlias)
{
mediaItem.HasProperty(propertyAlias);
var property = mediaItem.GetPropertyValue<string>(propertyAlias);
if (string.IsNullOrEmpty(property))