diff options
| -rw-r--r-- | bit_setup_inc.php | 2 | ||||
| -rw-r--r-- | templates/menu_stats.tpl | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/bit_setup_inc.php b/bit_setup_inc.php index c04da61..6f383ea 100644 --- a/bit_setup_inc.php +++ b/bit_setup_inc.php @@ -8,7 +8,7 @@ $registerHash = array( $gBitSystem->registerPackage( $registerHash ); if( $gBitSystem->isPackageActive( STATS_PKG_NAME ) ) { - if( $gBitUser->hasPermission( 'bit_p_view_site_stats' ) || $gBitUser->hasPermission( 'bit_p_view_ref_stats' ) ) { + if( $gBitUser->hasPermission( 'p_stats_view' ) || $gBitUser->hasPermission( 'p_stats_view_referer' ) ) { $gBitSystem->registerAppMenu( STATS_PKG_NAME, ucfirst( STATS_PKG_DIR ), STATS_PKG_URL.'index.php', 'bitpackage:stats/menu_stats.tpl', 'stats'); } global $statslib; diff --git a/templates/menu_stats.tpl b/templates/menu_stats.tpl index 4be2be2..9adc9db 100644 --- a/templates/menu_stats.tpl +++ b/templates/menu_stats.tpl @@ -1,10 +1,10 @@ {strip} <ul> - {if $gBitUser->hasPermission( 'bit_p_view_site_stats' )} + {if $gBitUser->hasPermission( 'p_stats_view' )} <li><a class="item" href="{$smarty.const.STATS_PKG_URL}index.php">{tr}Site Stats{/tr}</a></li> - {/if} - {if $gBitUser->hasPermission( 'p_stats_view' ) and $gBitSystem->mDb->mType eq 'postgres'} - <li><a class="item" href="{$smarty.const.STATS_PKG_URL}users.php">{tr}User Stats{/tr}</a></li> + {if $gBitSystem->mDb->mType eq 'postgres'} + <li><a class="item" href="{$smarty.const.STATS_PKG_URL}users.php">{tr}User Stats{/tr}</a></li> + {/if} {/if} {if $gBitSystem->isFeatureActive( 'referer_stats' ) and $gBitUser->hasPermission( 'p_stats_view_referer' )} <li><a class="item" href="{$smarty.const.STATS_PKG_URL}referer_stats.php">{tr}Referrer Stats{/tr}</a></li> |
