Assigning template name after automatic guessing
authorAlexander Ebert <ebert@woltlab.com>
Sun, 18 Nov 2012 21:59:58 +0000 (22:59 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 18 Nov 2012 21:59:58 +0000 (22:59 +0100)
Fixes #913

wcfsetup/install/files/lib/page/AbstractPage.class.php

index 712c4ffeced21ba38055346927fad37acfddb7a4..7d5cd2c88628011a46f81f71140d18b154d0617a 100644 (file)
@@ -179,6 +179,9 @@ abstract class AbstractPage implements IPage, ITrackablePage {
                        }
                                
                        $this->templateName = lcfirst($className);
+                       
+                       // assign guessed template name
+                       WCF::getTPL()->assign('templateName', $this->templateName);
                }
                
                if ($this->useTemplate) {