Project

General

Profile

Bug #3268 » 3268_alt.patch

krileon, 14 February 2012 20:47

View differences:

components/com_comprofiler/plugin/user/plug_cbmamboauthortab/cb.authortab.php
$return = '';
$now = date( 'Y-m-d H:i:s', $_CB_framework->now() + $_CB_framework->getCfg( 'offset' ) * 60 * 60 );
if ( $jVer >= 2 ) {
$curtz = date_default_timezone_get();
date_default_timezone_set( 'UTC' );
$now = date( 'Y-m-d H:i:s' );
date_default_timezone_set( $curtz );
} else {
$now = date( 'Y-m-d H:i:s', $_CB_framework->now() + $_CB_framework->getCfg( 'offset' ) * 60 * 60 );
}
$query = "SELECT a.id, a.catid, a.title, a.hits,a.created, ROUND( r.rating_sum / r.rating_count ) AS rating,r.rating_count";
if ( $jVer >= 1 ) {
$query .= ', CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(\':\', a.id, a.alias) ELSE a.id END as slug,'
(2-2/2)