Fixed templateGroups
authorMagnus Kühn <magnus@Magnus-Laptop.(none)>
Sun, 4 Mar 2012 16:27:46 +0000 (17:27 +0100)
committerMagnus Kühn <magnus@Magnus-Laptop.(none)>
Sun, 4 Mar 2012 16:27:46 +0000 (17:27 +0100)
wcfsetup/install/files/lib/system/template/TemplateEngine.class.php [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index ac2ee04..0d410a9
@@ -373,12 +373,12 @@ class TemplateEngine extends SingletonFactory {
                while ($templateGroupID != 0) {
                        $templateGroup = $this->templateGroupCache[$templateGroupID];
                        
-                       $path = $templatePath.$templateGroup['templateGroupFolderName'].$templateName.'.tpl';
+                       $path = $templatePath.$templateGroup->templateGroupFolderName.$templateName.'.tpl';
                        if (file_exists($path)) {
                                return $path;
                        }
                        
-                       $templateGroupID = $templateGroup['parentTemplateGroupID'];
+                       $templateGroupID = $templateGroup->parentTemplateGroupID;
                }
                
                // use default template