All empty double-quoted strings replaced with single-quotes
[core.git] / inc / classes / main / template / class_BaseTemplateEngine.php
index 8969e4e..4b121a4 100644 (file)
@@ -27,7 +27,7 @@ class BaseTemplateEngine extends BaseFrameworkSystem {
         * 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
@@ -52,17 +52,17 @@ class BaseTemplateEngine extends BaseFrameworkSystem {
        /**
         * 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
@@ -560,7 +560,7 @@ class BaseTemplateEngine extends BaseFrameworkSystem {
                // Is it not a config variable?
                if ($varName != 'config') {
                        // Regular template variables
-                       $this->assignVariable($var, "");
+                       $this->assignVariable($var, '');
                } else {
                        // Configuration variables
                        $this->assignConfigVariable($var);
@@ -779,7 +779,7 @@ class BaseTemplateEngine extends BaseFrameworkSystem {
                        }
 
                        // 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])) {
@@ -998,7 +998,7 @@ class BaseTemplateEngine extends BaseFrameworkSystem {
                        $eval = str_replace(
                                "<%php", "\";",
                                str_replace(
-                                       "%>", "\n\$result .= \"", $eval
+                                       "%>", "\n\$result .= \'', $eval
                                )
                        );
 
@@ -1074,7 +1074,7 @@ class BaseTemplateEngine extends BaseFrameworkSystem {
                                $this->insertRawTemplates();
 
                                // Remove the raw template content as well
-                               $this->setRawTemplateData("");
+                               $this->setRawTemplateData('');
 
                        } // END - if
 
@@ -1162,7 +1162,7 @@ class BaseTemplateEngine extends BaseFrameworkSystem {
                $this->assignVariable($variableName, $content);
 
                // Purge raw content
-               $this->setRawTemplateData("");
+               $this->setRawTemplateData('');
        }
 
        /**