# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. --- components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php +++ components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php @@ -3014,10 +3014,33 @@ class CBfield_connections extends CBfield_counter { /** + * Formatter: * Returns a field in specified format * * @param moscomprofilerFields $field * @param moscomprofilerUser $user + * @param string $output 'html', 'xml', 'json', 'php', 'csvheader', 'csv', 'rss', 'fieldslist', 'htmledit' + * @param string $formatting 'tr', 'td', 'div', 'span', 'none', 'table'?? + * @param string $reason 'profile' for user profile view, 'edit' for profile edit, 'register' for registration, 'search' for searches + * @param int $list_compare_types IF reason == 'search' : 0 : simple 'is' search, 1 : advanced search with modes, 2 : simple 'any' search + * @return mixed + */ + function getFieldRow( &$field, &$user, $output, $formatting, $reason, $list_compare_types ) { + global $ueConfig; + + $return = null; + + if ( $ueConfig['allowConnections'] ) { + $return = parent::getFieldRow( $field, $user, $output, $formatting, $reason, $list_compare_types ); + } + + return $return; + } + /** + * Returns a field in specified format + * + * @param moscomprofilerFields $field + * @param moscomprofilerUser $user \ No newline at end of file * @param string $output 'html', 'xml', 'json', 'php', 'csvheader', 'csv', 'rss', 'fieldslist', 'htmledit' * @param string $reason 'profile' for user profile view, 'edit' for profile edit, 'register' for registration, 'list' for user-lists * @param int $list_compare_types IF reason == 'search' : 0 : simple 'is' search, 1 : advanced search with modes, 2 : simple 'any' search