From da10377b3c263d96a46cf9101c202554343d2cd0 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sun, 29 May 2016 16:10:32 +0200 Subject: Rename configuration keys and fix GLOBALS in templates --- tpl/daily.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tpl/daily.html') diff --git a/tpl/daily.html b/tpl/daily.html index 063dc89a..dde1f376 100644 --- a/tpl/daily.html +++ b/tpl/daily.html @@ -53,7 +53,7 @@ permalink - {if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"} + {if="!$hide_timestamps || isLoggedIn()"}
{function="strftime('%c', $link.timestamp)"}
-- cgit v1.2.3 From dec5fe9c6973054a1301982f910de86a19502b55 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Sun, 16 Oct 2016 17:41:08 +0200 Subject: Cleanup: explicitely loop over PHP variables in templates Relates to https://github.com/shaarli/Shaarli/issues/613 Before: {loop="someVariable"} After: {loop="$someVariable"} Signed-off-by: VirtualTam --- tpl/daily.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tpl/daily.html') diff --git a/tpl/daily.html b/tpl/daily.html index dde1f376..b82ad483 100644 --- a/tpl/daily.html +++ b/tpl/daily.html @@ -42,10 +42,10 @@
{if="$linksToDisplay"} - {loop="cols"} + {loop="$cols"} {if="isset($value[0])"}
- {loop="value"} + {loop="$value"} {$link=$value}