X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=xml%2Ftemplates%2Fcivicrm_msg_template.tpl;h=8fcd5fe0354575b7fe35dd9b8b9d42bdd0ba0749;hb=cdbe53f0a44fabb342b3f49d5cb4410c325522b0;hp=805a67cba4502ed96567c20632755d6714e44dff;hpb=f0be7552105c404ee068bcaabc811180c4d45bb6;p=civicrm-core.git diff --git a/xml/templates/civicrm_msg_template.tpl b/xml/templates/civicrm_msg_template.tpl index 805a67cba4..8fcd5fe035 100644 --- a/xml/templates/civicrm_msg_template.tpl +++ b/xml/templates/civicrm_msg_template.tpl @@ -103,19 +103,19 @@ INSERT INTO civicrm_option_value {/foreach} INSERT INTO civicrm_msg_template - (msg_title, msg_subject, msg_text, msg_html, workflow_id, is_default, is_reserved) VALUES + (msg_title, msg_subject, msg_text, msg_html, workflow_name, workflow_id, is_default, is_reserved) VALUES {foreach from=$ovNames key=gName item=ovs name=for_groups} {foreach from=$ovs key=vName item=title name=for_values} - {fetch assign=subject file="`$smarty.const.SMARTY_DIR`/../../xml/templates/message_templates/`$vName`_subject.tpl"} - {fetch assign=text file="`$smarty.const.SMARTY_DIR`/../../xml/templates/message_templates/`$vName`_text.tpl"} - {fetch assign=html file="`$smarty.const.SMARTY_DIR`/../../xml/templates/message_templates/`$vName`_html.tpl"} - ('{$title}', '{$subject|escape:"quotes"}', '{$text|escape:"quotes"}', '{$html|escape:"quotes"}', @tpl_ovid_{$vName}, 1, 0), - ('{$title}', '{$subject|escape:"quotes"}', '{$text|escape:"quotes"}', '{$html|escape:"quotes"}', @tpl_ovid_{$vName}, 0, 1) {if $smarty.foreach.for_groups.last and $smarty.foreach.for_values.last};{else},{/if} + {fetch assign=subject file="`$gencodeXmlDir`/templates/message_templates/`$vName`_subject.tpl"} + {fetch assign=text file="`$gencodeXmlDir`/templates/message_templates/`$vName`_text.tpl"} + {fetch assign=html file="`$gencodeXmlDir`/templates/message_templates/`$vName`_html.tpl"} + ('{$title}', '{$subject|escape:"quotes"}', '{$text|escape:"quotes"}', '{$html|escape:"quotes"}', '{$vName}', @tpl_ovid_{$vName}, 1, 0), + ('{$title}', '{$subject|escape:"quotes"}', '{$text|escape:"quotes"}', '{$html|escape:"quotes"}', '{$vName}', @tpl_ovid_{$vName}, 0, 1) {if $smarty.foreach.for_groups.last and $smarty.foreach.for_values.last};{else},{/if} {/foreach} {/foreach} {php} - $dir = SMARTY_DIR . '/../../xml/templates/message_templates/sample'; + $dir = $this->_tpl_vars['gencodeXmlDir'] . '/templates/message_templates/sample'; $templates = array(); foreach (preg_grep('/\.tpl$/', scandir($dir)) as $filename) { $templates[] = array('name' => basename($filename, '.tpl'), 'filename' => "$dir/$filename");