Project

General

Profile

Bug #2525 ยป 2525.patch

krileon, 15 July 2011 17:46

View differences:

components/com_comprofiler/plugin/user/plug_cbsimpleboardtab/view/cb.simpleboardtab.tab.php
. '<tbody>';
foreach ( $template->posts AS $item ) {
$postURL = cbSef( 'index.php?option=' . $forum->component . $forum->itemid . '&amp;func=view&amp;catid=' . $item->catid . '&amp;id=' . $item->id ) . '#' . $item->id;
$catURL = cbSef( 'index.php?option=' . $forum->component . $forum->itemid . '&amp;func=' . ( $forum->component == 'com_kunena' ? 'showcat' : 'view' ) . '&amp;catid=' . $item->catid );
$version = substr( $forum->version, 0, 3 );
if ( ( $forum->component == 'com_kunena' ) && strcasecmp( $version, '1.6' ) >= 0 ) {
$postURL = KunenaRoute::_( 'index.php?option=' . $forum->component . '&func=view&catid=' . $item->catid . '&id=' . $item->id ) . '#' . $item->id;
$catURL = KunenaRoute::_( 'index.php?option=' . $forum->component . '&func=showcat&catid=' . $item->catid );
} else {
$postURL = cbSef( 'index.php?option=' . $forum->component . $forum->itemid . '&amp;func=view&amp;catid=' . $item->catid . '&amp;id=' . $item->id ) . '#' . $item->id;
$catURL = cbSef( 'index.php?option=' . $forum->component . $forum->itemid . '&amp;func=' . ( $forum->component == 'com_kunena' ? 'showcat' : 'view' ) . '&amp;catid=' . $item->catid );
}
$html .= '<tr class="sectiontableentry' . $oneOrTwo . '">'
. '<td>' . getFieldValue( 'date', date( 'Y-m-d, H:i:s', $item->time ) ) . '</td>'
. '<td><a href="' . $postURL . '">' . htmlspecialchars( stripslashes( $item->subject ) ) . '</a></td>'
    (1-1/1)