]> git.mxchange.org Git - mailer.git/blobdiff - inc/template-functions.php
Fix for SQL with ref_depth=NULL
[mailer.git] / inc / template-functions.php
index 382e4a6c9c7c18280b99ffc1fc42aeba346e0f17..16cc8cbf6fb71492ac7b59a80000f683a15f9259 100644 (file)
@@ -437,7 +437,7 @@ function detectExtraTemplatePath ($template) {
 }
 
 // Loads an email template and compiles it
-function loadEmailTemplate ($template, $content = array(), $userid = '0', $loadUserData = true) {
+function loadEmailTemplate ($template, $content = array(), $userid = NULL, $loadUserData = true) {
        // @TODO $DATA is deprecated and should be avoided and replaced with $content
        global $DATA;
 
@@ -1821,5 +1821,16 @@ function doTemplateAdminMemberMailLinks ($template, $dummy, $mailId) {
        return generateAdminMailLinks('mid', $mailId);
 }
 
+// Helper function to create a selection box for YES/NO configuration entries
+function doTemplateConfigurationYesNoSelectionBox ($template, $dummy, $configEntry) {
+       // Generate the HTML code
+       $OUT = '<select name="' . $configEntry . '" class="form_select" size="1">
+{%config,generateYesNoOptionList=' . $configEntry . '%}
+</select>';
+
+       // Return it
+       return $OUT;
+}
+
 // [EOF]
 ?>