diff --git a/infolog/inc/class.infolog_hooks.inc.php b/infolog/inc/class.infolog_hooks.inc.php
index ba8a8ae105..c14adf450c 100644
--- a/infolog/inc/class.infolog_hooks.inc.php
+++ b/infolog/inc/class.infolog_hooks.inc.php
@@ -381,7 +381,7 @@ class infolog_hooks
'label' => 'Default document to insert entries',
'name' => 'default_document',
'help' => lang('If you specify a document (full vfs path) here, infolog displays an extra document icon for each entry. That icon allows to download the specified document with the contact data inserted.').' '.
- lang('The document can contain placeholder like $$info_subject$$, to be replaced with the contact data (%1full list of placeholder names%2).','','').' '.
+ lang('The document can contain placeholder like {{info_subject}}, to be replaced with the contact data (%1full list of placeholder names%2).','','').' '.
lang('At the moment the following document-types are supported:').'*.rtf, *.txt',
'run_lang' => false,
'xmlrpc' => True,
@@ -393,7 +393,7 @@ class infolog_hooks
'label' => 'Directory with documents to insert entries',
'name' => 'document_dir',
'help' => lang('If you specify a directory (full vfs path) here, infolog displays an action for each document. That action allows to download the specified document with the infolog data inserted.').' '.
- lang('The document can contain placeholder like $$info_subject$$, to be replaced with the contact data (%1full list of placeholder names%2).','','').' '.
+ lang('The document can contain placeholder like {{info_subject}}, to be replaced with the contact data (%1full list of placeholder names%2).','','').' '.
lang('At the moment the following document-types are supported:').'*.rtf, *.txt',
'run_lang' => false,
'xmlrpc' => True,
diff --git a/infolog/inc/class.infolog_merge.inc.php b/infolog/inc/class.infolog_merge.inc.php
index 4074597556..577396e0b7 100644
--- a/infolog/inc/class.infolog_merge.inc.php
+++ b/infolog/inc/class.infolog_merge.inc.php
@@ -61,6 +61,7 @@ class infolog_merge extends bo_merge
{
$replacements += $this->contact_replacements($replacements['$$info_link$$']['id'],'info_contact');
}
+ if(is_array($replacements['$$info_link$$'])) unset($replacements['$$info_link$$']);
}
return $replacements;
}
@@ -132,7 +133,7 @@ class infolog_merge extends bo_merge
$n++;
}
if (!($n&1)) echo '
';
- echo '$$'.$name.'$$ | '.$label.' | ';
+ echo '{{'.$name.'}} | '.$label.' | ';
if ($n&1) echo "
\n";
$n++;
}
@@ -140,7 +141,7 @@ class infolog_merge extends bo_merge
echo ''.lang('Custom fields').": |
";
foreach($this->bo->customfields as $name => $field)
{
- echo '$$#'.$name.'$$ | '.$field['label']." |
\n";
+ echo '{{#'.$name.'}} | '.$field['label']." |
\n";
}
echo ''.lang('Contact fields').': |
';
@@ -155,7 +156,7 @@ class infolog_merge extends bo_merge
$n++;
}
if (!($n&1)) echo '';
- echo '$$info_contact/'.$name.'$$ | '.$label.' | ';
+ echo '{{info_contact/'.$name.'}} | '.$label.' | ';
if ($n&1) echo "
\n";
$n++;
}
@@ -163,7 +164,7 @@ class infolog_merge extends bo_merge
echo ''.lang('Custom fields').": |
";
foreach($this->contacts->customfields as $name => $field)
{
- echo '$$info_contact/#'.$name.'$$ | '.$field['label']." |
\n";
+ echo '{{info_contact/#'.$name.'}} | '.$field['label']." |
\n";
}
echo ''.lang('General fields:')." |
";
@@ -174,14 +175,14 @@ class infolog_merge extends bo_merge
'pagerepeat' => lang('For serial letter use this tag. Put the content, you want to repeat between two Tags.'),
'label' => lang('Use this tag for addresslabels. Put the content, you want to repeat, between two tags.'),
'labelplacement' => lang('Tag to mark positions for address labels'),
- 'IF fieldname' => lang('Example $$IF n_prefix~Mr~Hello Mr.~Hello Ms.$$ - search the field "n_prefix", for "Mr", if found, write Hello Mr., else write Hello Ms.'),
- 'NELF' => lang('Example $$NELF role$$ - if field role is not empty, you will get a new line with the value of field role'),
- 'NENVLF' => lang('Example $$NELFNV role$$ - if field role is not empty, set a LF without any value of the field'),
- 'LETTERPREFIX' => lang('Example $$LETTERPREFIX$$ - Gives a letter prefix without double spaces, if the title is emty for example'),
- 'LETTERPREFIXCUSTOM' => lang('Example $$LETTERPREFIXCUSTOM n_prefix title n_family$$ - Example: Mr Dr. James Miller'),
+ 'IF fieldname' => lang('Example {{IF n_prefix~Mr~Hello Mr.~Hello Ms.}} - search the field "n_prefix", for "Mr", if found, write Hello Mr., else write Hello Ms.'),
+ 'NELF' => lang('Example {{NELF role}} - if field role is not empty, you will get a new line with the value of field role'),
+ 'NENVLF' => lang('Example {{NELFNV role}} - if field role is not empty, set a LF without any value of the field'),
+ 'LETTERPREFIX' => lang('Example {{LETTERPREFIX}} - Gives a letter prefix without double spaces, if the title is emty for example'),
+ 'LETTERPREFIXCUSTOM' => lang('Example {{LETTERPREFIXCUSTOM n_prefix title n_family}} - Example: Mr Dr. James Miller'),
) as $name => $label)
{
- echo '$$'.$name.'$$ | '.$label." |
\n";
+ echo '{{'.$name.'}} | '.$label." |
\n";
}
echo "\n";