]> git.mxchange.org Git - core.git/commitdiff
Made readVariable() public, used single-quotes instead of double
authorRoland Häder <roland@mxchange.org>
Tue, 15 May 2012 16:54:47 +0000 (16:54 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 15 May 2012 16:54:47 +0000 (16:54 +0000)
inc/classes/main/template/class_BaseTemplateEngine.php

index cc9739aab3b0dd41168245a304f061f98f643876..f58a15a1c0a496069e9cb46e3aae6c777402fc68 100644 (file)
@@ -243,7 +243,7 @@ class BaseTemplateEngine extends BaseFrameworkSystem {
         * @param       $stack          Optional variable stack to look in
         * @return      $content        Content of the variable or null if not found
         */
-       protected function readVariable ($var, $stack = NULL) {
+       public function readVariable ($var, $stack = NULL) {
                // First everything is not found
                $content = NULL;
 
@@ -1325,7 +1325,7 @@ class BaseTemplateEngine extends BaseFrameworkSystem {
                // Is this view helper loaded?
                if (!isset($this->helpers[$helperName])) {
                        // Create a class name
-                       $className = "{$helperName}ViewHelper";
+                       $className = $helperName . 'ViewHelper';
 
                        // Generate new instance
                        $this->helpers[$helperName] = ObjectFactory::createObjectByName($className);