From 25d142076e851ee72de952bc76dc1a28a08e7040 Mon Sep 17 00:00:00 2001 From: Stefan Kamphuis Date: Wed, 28 Oct 2020 15:16:53 +0100 Subject: [PATCH] fixes #50 --- Components/Layout/LayoutController.vb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Components/Layout/LayoutController.vb b/Components/Layout/LayoutController.vb index 5466716..26164c1 100755 --- a/Components/Layout/LayoutController.vb +++ b/Components/Layout/LayoutController.vb @@ -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