Automatically assigning application as template variable
authorAlexander Ebert <ebert@woltlab.com>
Mon, 5 Nov 2012 22:59:11 +0000 (23:59 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 5 Nov 2012 22:59:11 +0000 (23:59 +0100)
wcfsetup/install/files/lib/system/WCF.class.php

index 65a4e6cca3864295fc2c5707e34a6e3300f12079..f13fca5f1fdc7a6cea31a0bd603bb009de3a59e0 100644 (file)
@@ -454,7 +454,8 @@ class WCF {
                                // add template path and abbreviation
                                $this->getTPL()->addApplication($abbreviation, $application->packageID, $packageDir . 'templates/');
                                
-                               call_user_func(array($className, 'getInstance'));
+                               // init application and assign it as template variable
+                               $this->getTPL()->assign('__'.$abbreviation, call_user_func(array($className, 'getInstance')));
                        }
                }
                else {