From: Marcel Werk Date: Tue, 26 Apr 2016 11:44:49 +0000 (+0200) Subject: Fixed acp template listener X-Git-Tag: 3.0.0_Beta_1~1812 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0082dcf4213fd95ea7237b20416a717873e47c8b;p=GitHub%2FWoltLab%2FWCF.git Fixed acp template listener --- diff --git a/wcfsetup/install/files/lib/system/template/ACPTemplateEngine.class.php b/wcfsetup/install/files/lib/system/template/ACPTemplateEngine.class.php index b6da6b7027..f90eaae7d9 100644 --- a/wcfsetup/install/files/lib/system/template/ACPTemplateEngine.class.php +++ b/wcfsetup/install/files/lib/system/template/ACPTemplateEngine.class.php @@ -67,8 +67,8 @@ class ACPTemplateEngine extends TemplateEngine { * @see \wcf\system\template\TemplateEngine::getTemplateListenerCode() */ public function getTemplateListenerCode($templateName, $eventName) { - // skip template listeners within WCF ACP - if (defined('PACKAGE_ID') && PACKAGE_ID == 1) { + // skip template listeners within WCFSetup + if (!PACKAGE_ID) { return ''; }