]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/main/template/class_BaseTemplateEngine.php
Packager script for latest dev version added, misc fixes, captcha verifier filter...
[shipsimu.git] / inc / classes / main / template / class_BaseTemplateEngine.php
index e0983b8d53ab6f6dea9dadcdca9eb522aea75272..c4660eb9b28cde163ad891ac4d848860834a202b 100644 (file)
@@ -114,7 +114,7 @@ class BaseTemplateEngine extends BaseFrameworkSystem {
        /**
         * Current variable group
         */
-       private $currGroup = "general";
+       private $currGroup = 'general';
 
        /**
         * All template groups except "general"
@@ -202,7 +202,7 @@ class BaseTemplateEngine extends BaseFrameworkSystem {
         */
        private function addVariable ($var, $value) {
                // Set general variable group
-               $this->setVariableGroup("general");
+               $this->setVariableGroup('general');
 
                // Add it to the stack
                $this->addGroupVariable($var, $value);
@@ -239,9 +239,9 @@ class BaseTemplateEngine extends BaseFrameworkSystem {
                //* DEBIG: */ echo __METHOD__.": currGroup=".$groupName."<br />\n";
                $this->currGroup = $groupName;
 
-               // Skip group "general"
-               if (($groupName != "general") && ($add === true)) {
-                       $this->varGroups[$groupName] = "OK";
+               // Skip group 'general'
+               if (($groupName != 'general') && ($add === true)) {
+                       $this->varGroups[$groupName] = 'OK';
                } // END - if
        }
 
@@ -550,7 +550,7 @@ class BaseTemplateEngine extends BaseFrameworkSystem {
        }
 
        /**
-        * Try to assign an extracted template variable as a "content" or "config"
+        * Try to assign an extracted template variable as a "content" or 'config'
         * variable.
         *
         * @param       $varName        The variable's name (shall be content orconfig) by
@@ -559,7 +559,7 @@ class BaseTemplateEngine extends BaseFrameworkSystem {
         */
        private function assignTemplateVariable ($varName, $var) {
                // Is it not a config variable?
-               if ($varName != "config") {
+               if ($varName != 'config') {
                        // Regular template variables
                        $this->assignVariable($var, "");
                } else {
@@ -1183,13 +1183,13 @@ class BaseTemplateEngine extends BaseFrameworkSystem {
         */
        public function assignApplicationData (ManageableApplication $appInstance) {
                // Get long name and assign it
-               $this->assignVariable("app_full_name" , $appInstance->getAppName());
+               $this->assignVariable('app_full_name' , $appInstance->getAppName());
 
                // Get short name and assign it
-               $this->assignVariable("app_short_name", $appInstance->getAppShortName());
+               $this->assignVariable('app_short_name', $appInstance->getAppShortName());
 
                // Get version number and assign it
-               $this->assignVariable("app_version"   , $appInstance->getAppVersion());
+               $this->assignVariable('app_version'   , $appInstance->getAppVersion());
        }
 
        /**