mirror of
https://github.com/friendica/friendica
synced 2025-04-25 23:50:11 +00:00
remove dashes from variable names in profile_vcard.tpl
This commit is contained in:
parent
f519b90737
commit
792b4f63e7
3 changed files with 10 additions and 5 deletions
7
boot.php
7
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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue