Skip to content

Commit

Permalink
Merge pull request #52 from ventrian/feature/fix-#50-authorphoto
Browse files Browse the repository at this point in the history
Feature/fix #50 authorphoto
  • Loading branch information
skamphuis authored Oct 28, 2020
2 parents 2df8875 + 25d1420 commit 508e46c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Components/Layout/LayoutController.vb
Original file line number Diff line number Diff line change
Expand Up @@ -2809,6 +2809,15 @@ Namespace Ventrian.NewsArticles
objLiteral.EnableViewState = False
objPlaceHolder.Add(objLiteral)

Case "image"
Dim objLiteral As New Literal
If profilePropertyValue = String.Empty Then
objLiteral.Text = String.Empty
Else
objLiteral.Text = UrlUtils.EncryptParameter(UrlUtils.GetParameterValue($"fileid={profilePropertyValue}"), PortalSettings.GUID.ToString())
End If
objPlaceHolder.Add(objLiteral)

Case Else
Dim objLiteral As New Literal
If profilePropertyValue = String.Empty Then
Expand Down

0 comments on commit 508e46c

Please sign in to comment.