* templates are stored. We will internally determine the language plus
* "html" for web templates or "emails" for email templates
*/
- private $basePath = "";
+ private $basePath = '';
/**
* Template type
/**
* The raw (maybe uncompiled) template
*/
- private $rawTemplateData = "";
+ private $rawTemplateData = '';
/**
* Template data with compiled-in variables
*/
- private $compiledData = "";
+ private $compiledData = '';
/**
* The last loaded template's FQFN for debugging the engine
*/
- private $lastTemplate = "";
+ private $lastTemplate = '';
/**
* The variable stack for the templates
// Is it not a config variable?
if ($varName != 'config') {
// Regular template variables
- $this->assignVariable($var, "");
+ $this->assignVariable($var, '');
} else {
// Configuration variables
$this->assignConfigVariable($var);
}
// Do we have some quotes left and right side? Then it is free text
- if ((substr($varMatches[2][$key], 0, 1) == "\"") && (substr($varMatches[2][$key], -1, 1) == "\"")) {
+ if ((substr($varMatches[2][$key], 0, 1) == "\'') && (substr($varMatches[2][$key], -1, 1) == "\'')) {
// Free string detected! Which we can assign directly
$this->assignVariable($var, $varMatches[3][$key]);
} elseif (!empty($varMatches[2][$key])) {
$eval = str_replace(
"<%php", "\";",
str_replace(
- "%>", "\n\$result .= \"", $eval
+ "%>", "\n\$result .= \'', $eval
)
);
$this->insertRawTemplates();
// Remove the raw template content as well
- $this->setRawTemplateData("");
+ $this->setRawTemplateData('');
} // END - if
$this->assignVariable($variableName, $content);
// Purge raw content
- $this->setRawTemplateData("");
+ $this->setRawTemplateData('');
}
/**