From 7b5d9ba3cc4003f767c0a9d66cc1314bd8ea096c Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 5 Nov 2012 23:59:11 +0100 Subject: [PATCH] Automatically assigning application as template variable --- wcfsetup/install/files/lib/system/WCF.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { -- 2.20.1