don't build anything except absolute URLs

master
Marek Isalski 7 years ago
parent ff08a6eb1c
commit 9efa9cfe78

@ -596,8 +596,7 @@ function _fulcrm_campaign_admin_campaign_sync_build( $fcid, $fetch = false, $err
if ( $node ) {
$uri = entity_uri( 'node', $node );
$node_data = array( ( 'is_node_type_' . $node->type . '?' ) => TRUE,
'node_url' => url( $uri[ 'path' ], $uri[ 'options' ] ),
'node_url_absolute' => url( $uri[ 'path' ], array_merge( $uri[ 'options' ], array( 'absolute' => TRUE ) ) ),
'node_url' => url( $uri[ 'path' ], array_merge( $uri[ 'options' ], array( 'absolute' => TRUE ) ) ),
'date' => format_date( $node->created ),
'name' => theme( 'username', array( 'account' => $node ) ),
);
@ -620,8 +619,7 @@ function _fulcrm_campaign_admin_campaign_sync_build( $fcid, $fetch = false, $err
$v[ 'is_image_field?' ] = TRUE;
$v[ $lang ][ $i ][ 'is_image?' ] = TRUE;
foreach ( image_styles() as $imagestyle => $styledata ) {
$v[ $lang ][ $i ][ 'image_style_' . $imagestyle . '_url' ] = image_style_url( $imagestyle, $v[ $lang ][ $i ][ 'uri' ] );
$v[ $lang ][ $i ][ 'image_style_' . $imagestyle . '_url_absolute' ] = url( $v[ $lang ][ $i ][ 'image_style_' . $imagestyle . '_url' ], array( 'absolute' => TRUE ) );
$v[ $lang ][ $i ][ 'image_style_' . $imagestyle . '_url_absolute' ] = url( $image_style_url( $imagestyle, $v[ $lang ][ $i ][ 'uri' ] ), array( 'absolute' => TRUE ) );
}
}
}

Loading…
Cancel
Save