Project

General

Profile

Bug #2766 » comprofiler.class.php.patch

krileon, 26 October 2011 16:19

View differences:

administrator/components/com_comprofiler/comprofiler.class.php
}
return $result;
}
function commitTabsContents( &$user, &$postdata, $reason ) {
global $_CB_framework, $_PLUGINS;
$fields = $this->_getTabFieldsDb( null, $user, $reason, null, false );
$result = true;
foreach ( $fields as $field ) {
if ( ( ! ( ( $field->readonly > 0 ) && $_CB_framework->getUi() == 1 ) ) || ( $reason == 'register' ) || ( $reason == 'search' ) ) {
if ( ! $_PLUGINS->is_errors() ) {
$_PLUGINS->callField( $field->type, 'commitFieldDataSave', array( &$field, &$user, &$postdata, $reason ), $field );
}
}
}
return $result;
}
function rollbackTabsContents( &$user, &$postdata, $reason ) {
global $_CB_framework, $_PLUGINS;
$fields = $this->_getTabFieldsDb( null, $user, $reason, null, false );
$result = true;
foreach ( $fields as $field ) {
if ( ( ! ( ( $field->readonly > 0 ) && $_CB_framework->getUi() == 1 ) ) || ( $reason == 'register' ) || ( $reason == 'search' ) ) {
if ( $_PLUGINS->is_errors() ) {
$_PLUGINS->callField( $field->type, 'rollbackFieldDataSave', array( &$field, &$user, &$postdata, $reason ), $field );
}
}
}
return $result;
}
function savePluginTabs( &$user, &$postdata ) {
global $_PLUGINS;
(3-3/4)