# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. --- components/com_comprofiler/plugin/user/plug_cbsimpleboardtab/view/cb.simpleboardtab.tab.php +++ components/com_comprofiler/plugin/user/plug_cbsimpleboardtab/view/cb.simpleboardtab.tab.php @@ -87,9 +87,16 @@ . ''; 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 ); + } + \ No newline at end of file $html .= '' . '' . getFieldValue( 'date', date( 'Y-m-d, H:i:s', $item->time ) ) . '' . '' . htmlspecialchars( stripslashes( $item->subject ) ) . ''