From b76aeba3e4cb7be665c78a9d8ccae7c75c2063c4 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 24 Jul 2014 13:20:27 +0200 Subject: [PATCH] Fixed abbreviation during WCFSetup --- .../files/lib/system/template/ACPTemplateEngine.class.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/template/ACPTemplateEngine.class.php b/wcfsetup/install/files/lib/system/template/ACPTemplateEngine.class.php index 72d41bb08f..55ae39e71e 100644 --- a/wcfsetup/install/files/lib/system/template/ACPTemplateEngine.class.php +++ b/wcfsetup/install/files/lib/system/template/ACPTemplateEngine.class.php @@ -47,7 +47,12 @@ class ACPTemplateEngine extends TemplateEngine { * @see \wcf\system\template\TemplateEngine::getCompiledFilename() */ public function getCompiledFilename($templateName, $application) { - return $this->compileDir.$this->templateGroupID.'_'.ApplicationHandler::getInstance()->getActiveApplication()->getAbbreviation().'_'.$this->languageID.'_'.$templateName.'.php'; + $abbreviation = 'wcf'; + if (PACKAGE_ID) { + $abbreviation = ApplicationHandler::getInstance()->getActiveApplication()->getAbbreviation(); + } + + return $this->compileDir.$this->templateGroupID.'_'.$abbreviation.'_'.$this->languageID.'_'.$templateName.'.php'; } /** -- 2.20.1