From: Alexander Ebert Date: Thu, 17 Jul 2014 10:54:50 +0000 (+0200) Subject: Fixed application uninstallation X-Git-Tag: 2.1.0_Alpha_1~558^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6e645852c2364cb50c6c245c94c8c74301f3a1e6;p=GitHub%2FWoltLab%2FWCF.git Fixed application uninstallation --- 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); + } }