// Use it again
$code = $newContent;
- // Compile the final code
- $code = compileRawCode($code);
+ // Compile the final code if insertComments is true
+ if ($insertComments == true) {
+ // ... because SQL queries shall keep OPEN_CONFIG and such in
+ $code = compileRawCode($code);
+ } // END - if
// Count round
$count++;
}
// 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;