summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2026-03-27 16:19:17 +0000
committerlsces <lester@lsces.co.uk>2026-03-27 16:19:17 +0000
commitd001fe5e6b03b5b39e2ca746d5bf50f8cd55695b (patch)
tree2029fbac0541632d4177bc750e54d1df5aa20dae
parentac01ca32849e5223c8ff15fa7c6a824b84eb29e6 (diff)
downloadstats-d001fe5e6b03b5b39e2ca746d5bf50f8cd55695b.tar.gz
stats-d001fe5e6b03b5b39e2ca746d5bf50f8cd55695b.tar.bz2
stats-d001fe5e6b03b5b39e2ca746d5bf50f8cd55695b.zip
Figured what has been causing a problem with using && and || in smarty templates and related to mistake in processing {2} elements that should use curly brackets and not revert to square ones.
-rw-r--r--templates/menu_stats.tpl2
-rw-r--r--templates/user_stats.tpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/menu_stats.tpl b/templates/menu_stats.tpl
index 230ccdb..e8429f9 100644
--- a/templates/menu_stats.tpl
+++ b/templates/menu_stats.tpl
@@ -7,7 +7,7 @@
<li><a class="item" href="{$smarty.const.STATS_PKG_URL}users.php">{booticon iname="fa-user" iexplain="User Stats"}</a></li>
{/if}
{/if}
- {if $gBitSystem->isFeatureActive( 'stats_referers' ) and $gBitUser->hasPermission( 'p_stats_view_referer' )}
+ {if $gBitSystem->isFeatureActive( 'stats_referers' ) && $gBitUser->hasPermission( 'p_stats_view_referer' )}
<li><a class="item" href="{$smarty.const.STATS_PKG_URL}referrers.php">{booticon iname="fa-bullhorn" iexplain="Referer Stats"}</a></li>
{/if}
</ul>
diff --git a/templates/user_stats.tpl b/templates/user_stats.tpl
index 89cf28e..a5f8f50 100644
--- a/templates/user_stats.tpl
+++ b/templates/user_stats.tpl
@@ -20,7 +20,7 @@
<tr class="{cycle values="even,odd"}">
<td>{$timeframe}</td>
<td>
- {if $gBitSystem->isFeatureActive( 'stats_referers' ) and $gBitUser->hasPermission( 'p_stats_view_referer' )}
+ {if $gBitSystem->isFeatureActive( 'stats_referers' ) && $gBitUser->hasPermission( 'p_stats_view_referer' )}
[<a href="{$smarty.const.STATS_PKG_URL}referrers.php?period={$smarty.request.period}&amp;timeframe={$timeframe|urlencode}">Referrers</a>]
{/if}
</td>