From: Alexander Ebert Date: Thu, 24 Jul 2014 11:20:27 +0000 (+0200) Subject: Fixed abbreviation during WCFSetup X-Git-Tag: 2.1.0_Alpha_1~544 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b76aeba3e4cb7be665c78a9d8ccae7c75c2063c4;p=GitHub%2FWoltLab%2FWCF.git Fixed abbreviation during WCFSetup --- 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'; } /**