Bug #2525 ยป 2525.patch
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 . '&func=view&catid=' . $item->catid . '&id=' . $item->id ) . '#' . $item->id;
|
||
$catURL = cbSef( 'index.php?option=' . $forum->component . $forum->itemid . '&func=' . ( $forum->component == 'com_kunena' ? 'showcat' : 'view' ) . '&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 . '&func=view&catid=' . $item->catid . '&id=' . $item->id ) . '#' . $item->id;
|
||
$catURL = cbSef( 'index.php?option=' . $forum->component . $forum->itemid . '&func=' . ( $forum->component == 'com_kunena' ? 'showcat' : 'view' ) . '&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>'
|