From 36818d6c59d487c19a920a960991edc6bc61a8e4 Mon Sep 17 00:00:00 2001 From: Eldon Koyle Date: Wed, 16 Mar 2016 11:26:19 -0600 Subject: [PATCH] Use double-quotes in template example and warn about single-quotes --- doc/Extensions/Alerting.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/Extensions/Alerting.md b/doc/Extensions/Alerting.md index 1cef41509..88836f5e4 100644 --- a/doc/Extensions/Alerting.md +++ b/doc/Extensions/Alerting.md @@ -139,9 +139,12 @@ Alert sent to: {foreach %contacts}%value <%key> {/foreach} Conditional formatting example, will display a link to the host in email or just the hostname in any other transport: ```text -{if %transport == mail}%hostname{else}%hostname{/if} +{if %transport == mail}%hostname{else}%hostname{/if} ``` +Note the use of double-quotes. Single quotes (`'`) in templates will be escaped (replaced with `\'`) in the output and should therefore be avoided. + + # Transports Transports are located within `$config['install_dir']/includes/alerts/transports.*.php` and defined as well as configured via ~~`$config['alert']['transports']['Example'] = 'Some Options'`~~.