diff --git a/boot.php b/boot.php index 77be9ac2..1d430088 100644 --- a/boot.php +++ b/boot.php @@ -1345,12 +1345,17 @@ if(! function_exists('profile_sidebar')) { $tpl = get_markup_template('profile_vcard.tpl'); + $p = array(); + foreach($profile as $k => $v) { + $k = str_replace('-','_',$k); + $p[$k] = $v; + } if($a->theme['template_engine'] === 'internal') $location = template_escape($location); $o .= replace_macros($tpl, array( - '$profile' => $profile, + '$profile' => $p, '$connect' => $connect, '$wallmessage' => $wallmessage, '$location' => $location, diff --git a/view/profile_vcard.tpl b/view/profile_vcard.tpl index d1e68479..6e137f28 100644 --- a/view/profile_vcard.tpl +++ b/view/profile_vcard.tpl @@ -16,9 +16,9 @@ $profile.locality{{ if $profile.locality }}, {{ endif }} $profile.region - $profile.postal-code + $profile.postal_code - {{ if $profile.country-name }}$profile.country-name{{ endif }} + {{ if $profile.country_name }}$profile.country_name{{ endif }} {{ endif }} diff --git a/view/smarty3/profile_vcard.tpl b/view/smarty3/profile_vcard.tpl index 86f25fe0..4e3b1f36 100644 --- a/view/smarty3/profile_vcard.tpl +++ b/view/smarty3/profile_vcard.tpl @@ -16,9 +16,9 @@ {{$profile.locality}}{{if $profile.locality}}, {{/if}} {{$profile.region}} - {{$profile.postal-code}} + {{$profile.postal_code}} - {{if $profile.country-name}}{{$profile.country-name}}{{/if}} + {{if $profile.country_name}}{{$profile.country_name}}{{/if}} {{/if}}