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 cc9739a..f58a15a 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);