Fixed abbreviation during WCFSetup
authorAlexander Ebert <ebert@woltlab.com>
Thu, 24 Jul 2014 11:20:27 +0000 (13:20 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 24 Jul 2014 11:20:27 +0000 (13:20 +0200)
wcfsetup/install/files/lib/system/template/ACPTemplateEngine.class.php

index 72d41bb08fbdebcdbb9521d048edbe06c304c525..55ae39e71e48b4d1ecdc44b19db613fd0e58cab1 100644 (file)
@@ -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';
        }
        
        /**