Fixed acp template listener
authorMarcel Werk <burntime@woltlab.com>
Tue, 26 Apr 2016 11:44:49 +0000 (13:44 +0200)
committerMarcel Werk <burntime@woltlab.com>
Tue, 26 Apr 2016 11:44:54 +0000 (13:44 +0200)
wcfsetup/install/files/lib/system/template/ACPTemplateEngine.class.php

index b6da6b7027cc7cc87cbb378707583553318d056e..f90eaae7d9432f190ff6e7b05daa607316cea675 100644 (file)
@@ -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 '';
                }