Project

General

Profile

Bug #2110 ยป 2110.patch

krileon, 29 November 2010 16:05

View differences:

components/com_comprofiler/plugin/user/plug_cbsimpleboardtab/cb.simpleboardtab.php
if ( $statDisplay == 2 ) {
$template->showStats = ( isset ( $forum->config['showuserstats'] ) ? $forum->config['showuserstats'] : $forum->config['showstats'] );
$template->showRank = ( $forum->config['showranking'] && ( $params->get( 'statRanking', 1 ) == 1 ) && ( $forum->userdetails !== false ) );
$template->showPosts = ( ( isset ( $forum->config['poststats'] ) ? $forum->config['poststats'] : $forum->config['postStats'] ) && ( ( $params->get( 'statPosts', 1 ) == 2 ) || ( ( $params->get( 'statPosts', 1 ) == 1 ) && ( $forum->userdetails !== false ) ) ) );
$template->showPosts = ( ( isset ( $forum->config['poststats'] ) ? $forum->config['poststats'] : ( isset ( $forum->config['postStats'] ) ? $forum->config['postStats'] : ( isset ( $forum->config['userlist_posts'] ) ? $forum->config['userlist_posts'] : $forum->config['showstats'] ) ) ) && ( ( $params->get( 'statPosts', 1 ) == 2 ) || ( ( $params->get( 'statPosts', 1 ) == 1 ) && ( $forum->userdetails !== false ) ) ) );
$template->showKarma = ( $forum->config['showkarma'] && ( $forum->userdetails !== false ) && ( ( $params->get( 'statKarma', 1 ) == 2 ) || ( ( $params->get( 'statKarma', 1 ) == 1 ) && ( $forum->userdetails->karma != 0 ) ) ) );
$return .= getForumTabTemplate::ShowStats( $template, $forum, $this );
    (1-1/1)