Fixes the avatar Url from the menu

This commit is contained in:
Paul Schneider 2015-10-10 13:38:07 +02:00
commit 424bb157e3
9 changed files with 71 additions and 27 deletions

View file

@ -150,7 +150,7 @@ namespace Yavsc.Helpers
/// <returns>The URL.</returns>
/// <param name="helper">Helper.</param>
/// <param name="username">Username.</param>
public static string AvatarUrl (this System.Web.WebPages.Html.HtmlHelper helper, string username) {
public static string AvatarUrl (this System.Web.Mvc.UrlHelper helper, string username) {
ProfileBase pr = ProfileBase.Create (username);
var a = pr.GetPropertyValue("Avatar") ;
if (a == null || a is DBNull) return "/avatars/" + helper.Encode(username)+".png";