use wcf\data\package\Package;
use wcf\data\package\PackageList;
use wcf\data\DatabaseObject;
-use wcf\system\request\RouteHandler;
+use wcf\system\application\ApplicationHandler;
use wcf\system\exception\SystemException;
+use wcf\system\request\RouteHandler;
use wcf\util\FileUtil;
/**
*/
protected static $directories = null;
+ /**
+ * Returns the abbreviation of the application.
+ *
+ * @return string
+ */
+ public function getAbbreviation() {
+ return ApplicationHandler::getInstance()->getAbbreviation($this->packageID);
+ }
+
/**
* Returns absolute page URL.
*
<?php
namespace wcf\system\template;
+use wcf\system\application\ApplicationHandler;
/**
* Loads and displays template in the ACP.
self::deleteCompiledTemplates($compileDir);
}
+ /**
+ * @see \wcf\system\template\TemplateEngine::getCompiledFilename()
+ */
+ public function getCompiledFilename($templateName, $application) {
+ return $this->compileDir.$this->templateGroupID.'_'.ApplicationHandler::getInstance()->getActiveApplication()->getAbbreviation().'_'.$this->languageID.'_'.$templateName.'.php';
+ }
+
/**
* @see \wcf\system\template\TemplateEngine::setTemplateGroupID()
*/