From 49b557c5a1a0324d8d06420b204eda7edd7a51aa Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Fri, 15 Apr 2016 18:57:45 +0200 Subject: [PATCH] Fixed template syntax issue (nested hascontent) --- .../files/acp/templates/acpSessionLog.tpl | 30 +++++++++---------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/acpSessionLog.tpl b/wcfsetup/install/files/acp/templates/acpSessionLog.tpl index 15bd11fb10..7c8eba1d29 100644 --- a/wcfsetup/install/files/acp/templates/acpSessionLog.tpl +++ b/wcfsetup/install/files/acp/templates/acpSessionLog.tpl @@ -20,7 +20,7 @@ {/hascontent} -{hascontent} +{if $objects|count}
@@ -37,20 +37,18 @@ - {content} - {foreach from=$objects item=sessionAccessLog} - - - - - - - - - {event name='columns'} - - {/foreach} - {/content} + {foreach from=$objects item=sessionAccessLog} + + + + + + + + + {event name='columns'} + + {/foreach}
{@$sessionAccessLog->sessionAccessLogID}{$sessionAccessLog->getIpAddress()}{@$sessionAccessLog->time|time}{$sessionAccessLog->className}{if !$sessionAccessLog->hasProtectedURI()}{$sessionAccessLog->requestURI|truncate:50|tableWordwrap}{else}{$sessionAccessLog->requestURI|truncate:50|tableWordwrap}{/if}{$sessionAccessLog->requestMethod}
{@$sessionAccessLog->sessionAccessLogID}{$sessionAccessLog->getIpAddress()}{@$sessionAccessLog->time|time}{$sessionAccessLog->className}{if !$sessionAccessLog->hasProtectedURI()}{$sessionAccessLog->requestURI|truncate:50|tableWordwrap}{else}{$sessionAccessLog->requestURI|truncate:50|tableWordwrap}{/if}{$sessionAccessLog->requestMethod}
@@ -70,6 +68,6 @@ -{/hascontent} +{/if} {include file='footer'} -- 2.20.1