From 6e645852c2364cb50c6c245c94c8c74301f3a1e6 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 17 Jul 2014 12:54:50 +0200 Subject: [PATCH] Fixed application uninstallation --- .../lib/system/template/ACPTemplateEngine.class.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/wcfsetup/install/files/lib/system/template/ACPTemplateEngine.class.php b/wcfsetup/install/files/lib/system/template/ACPTemplateEngine.class.php index 4b5d71f9d5..a283300746 100644 --- a/wcfsetup/install/files/lib/system/template/ACPTemplateEngine.class.php +++ b/wcfsetup/install/files/lib/system/template/ACPTemplateEngine.class.php @@ -49,4 +49,16 @@ class ACPTemplateEngine extends TemplateEngine { // template groups are not supported by the acp template engine $this->templateGroupID = 0; } + + /** + * @see \wcf\system\template\TemplateEngine::getTemplateListenerCode() + */ + public function getTemplateListenerCode($templateName, $eventName) { + // skip template listeners within WCF ACP + if (defined('PACKAGE_ID') && PACKAGE_ID == 1) { + return ''; + } + + return parent::getTemplateListenerCode($templateName, $eventName); + } } -- 2.20.1