From: Alexander Ebert Date: Mon, 5 Nov 2012 22:59:11 +0000 (+0100) Subject: Automatically assigning application as template variable X-Git-Tag: 2.0.0_Beta_1~807 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7b5d9ba3cc4003f767c0a9d66cc1314bd8ea096c;p=GitHub%2FWoltLab%2FWCF.git Automatically assigning application as template variable --- diff --git a/wcfsetup/install/files/lib/system/WCF.class.php b/wcfsetup/install/files/lib/system/WCF.class.php index 65a4e6cca3..f13fca5f1f 100644 --- a/wcfsetup/install/files/lib/system/WCF.class.php +++ b/wcfsetup/install/files/lib/system/WCF.class.php @@ -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 {