Project

General

Profile

Bug #2132 » 2132_a.patch

krileon, 07 December 2010 15:24

View differences:

administrator/components/com_comprofiler/plugin.class.php
if ( $oValue != null || trim($oValue) != '' ) {
if ( cbStartOfStringMatch( $output, 'html' ) ) {
$results = self::renderFieldHtml( $field, $user, $oValue, $output, $formatting, $reason, array() );
$results = $this->renderFieldHtml( $field, $user, $oValue, $output, $formatting, $reason, array() );
} else {
$results = $oValue;
}
......
* @param string $reason 'profile' for user profile view, 'edit' for profile edit, 'register' for registration, 'search' for searches
* @param array $rowClasses
*/
static function renderFieldHtml( $field, &$user, $oValue, $output, $formatting, $reason, $rowClasses ) {
function renderFieldHtml( $field, &$user, $oValue, $output, $formatting, $reason, $rowClasses ) {
global $_CB_OneTwoRowsStyleToggle;
$results = null;
$translatedTitle = self::getFieldTitle( $field, $user, $output, $reason );
$htmlDescription = ( $output == 'htmledit' ? self::getFieldDescription( $field, $user, 'htmledit', $reason ) : null );
$translatedTitle = $this->getFieldTitle( $field, $user, $output, $reason );
$htmlDescription = ( $output == 'htmledit' ? $this->getFieldDescription( $field, $user, 'htmledit', $reason ) : null );
if ( $output == 'htmledit' ) {
$labelTitle = ( trim( strip_tags( $htmlDescription ) ) ? ' title="' . htmlspecialchars( $translatedTitle ) . ':' . htmlspecialchars( $htmlDescription ) . '"' : '' );
(1-1/2)