Bug #2766 » comprofiler.class.php.patch
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;
|
||
|