# 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_ratingfield/ratingfield.php +++ components/com_comprofiler/plugin/user/plug_ratingfield/ratingfield.php @@ -211,19 +211,14 @@ ; /* Load Necessary AJAX/Javascript */ - if ( $_CB_framework->getUi() == 2 ) { - $ajaxUrl = $live_site . '/administrator/index3.php'; - } else { - $ajaxUrl = $live_site . '/index2.php'; - } - + $ajaxUrl = cbSef( 'index.php?option=com_comprofiler&task=fieldclass&field=' . str_replace( 'Self', '', $inputName ) . '&function=savevalue&user=' . $userid . '&reason=profile', false, 'raw' ); $options = ( $mandatory ? "required:true, " : "" ); $options .= "cancel: '" . addslashes( CBTxt::T('Cancel Rating') ) . "'"; if ( $mode == 3 ) { $options .= ", callback: ". " function(value, link){ ". " $.ajax( { type: 'POST',". - " url: '$ajaxUrl?option=com_comprofiler&task=fieldclass&field='+encodeURIComponent('".str_replace("Self","",$inputName)."')+'&function=savevalue&user=$userid&no_html=1&format=raw&reason=profile', ". \ No newline at end of file + " url: '$ajaxUrl', ". \ No newline at end of file " data: '".str_replace("Self","",$inputName)."=' + encodeURIComponent( value ) + '&$cbSpoofField=' + encodeURIComponent('$cbSpoofString') + '&$regAntiSpamFieldName=' + encodeURIComponent('$regAntiSpZ')+ '&uid=$userid', ". " success: function(response) { ". " $('#".$containerPrefix."HOVER').html(response); ".