Project

General

Profile

Bug #2225 » cb.core-rev4.patch

krileon, 24 January 2011 22:00

View differences:

components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php
}
}
$lists['gid'] = moscomprofilerHTML::selectList( $gtree, 'gid', 'class="inputbox" size="11" mosReq="0"', 'value', 'text', $user->gid, 2, false );
if ( checkJversion() == 2 ) {
$lists['gid'] = moscomprofilerHTML::selectList( $gtree, 'gid[]', 'class="inputbox" size="11" mosReq="0" multiple="multiple"', 'value', 'text', $user->gids, 2, false );
} else {
$lists['gid'] = moscomprofilerHTML::selectList( $gtree, 'gid', 'class="inputbox" size="11" mosReq="0"', 'value', 'text', $user->gid, 2, false );
}
}
// build the html select list
$lists['block'] = moscomprofilerHTML::yesnoSelectList( 'block', 'class="inputbox" size="1"', $user->block );
......
// this is (for now) handled in the core of CB... except params and block/email/approved/confirmed:
if ( $_CB_framework->getUi() == 2 ) {
$user->gid = cbGetParam( $postdata, 'gid', 0 );
if ( checkJversion() == 2 ) {
$user->gids = cbGetParam( $postdata, 'gid', array( 0 ) );
$user->gid = (int) $_CB_framework->acl->getBackwardsCompatibleGid( $gids );
} else {
$user->gid = cbGetParam( $postdata, 'gid', 0 );
$user->gids = array( $gids );
}
$user->block = cbGetParam( $postdata, 'block', 0 );
$user->sendEmail = cbGetParam( $postdata, 'sendEmail', 0 );
$user->approved = cbGetParam( $postdata, 'approved', 0 );
(12-12/12)