Fixed application uninstallation
authorAlexander Ebert <ebert@woltlab.com>
Thu, 17 Jul 2014 10:54:50 +0000 (12:54 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 17 Jul 2014 10:54:50 +0000 (12:54 +0200)
wcfsetup/install/files/lib/system/template/ACPTemplateEngine.class.php

index 4b5d71f9d5c95d7175a341f91b2eff0b7eeb3006..a2833007466ae6355acb60d95664fa4596a2c758 100644 (file)
@@ -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);
+       }
 }