Project

General

Profile

Bug #2306 » 2306a.patch

krileon, 08 February 2011 20:53

View differences:

administrator/components/com_comprofiler/controller/controller.default.php
$gtree2 = array_merge( $gtree2, $_CB_framework->acl->get_group_children_tree( null, 'USERS', false ));
if ( checkJversion() == 2 ) {
if ( ! in_array( $ueConfig['imageApproverGid'], $gtree ) ) {
$mygrps = array();
if ( $gtree ) foreach ( $gtree as $treegrp ) {
$mygrps[] = $treegrp->value;
}
if ( ! in_array( $ueConfig['imageApproverGid'], $mygrps ) ) {
$image_approval = 8; // Joomla 1.6 super-admin to fix the default ueConfig for 1.6.
} else {
$image_approval = $ueConfig['imageApproverGid'];
(1-1/2)