diff options
| -rw-r--r-- | templates/menu_stats.tpl | 2 | ||||
| -rw-r--r-- | templates/user_stats.tpl | 2 |
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}&timeframe={$timeframe|urlencode}">Referrers</a>] {/if} </td> |
