<?php
namespace wcf\system\template;
-use wcf\system\exception\SystemException;
/**
* Loads and displays template during the setup process.
* @see wcf\system\template\TemplateEngine::getSourceFilename()
*/
public function getSourceFilename($templateName, $application) {
- $sourceFilename = $this->templatePaths[$application].'setup/template/'.$templateName.'.tpl';
- if (!empty($sourceFilename)) {
- return $sourceFilename;
- }
-
- throw new SystemException("Unable to find template '".$templateName."'");
+ return $this->compileDir.'setup/template/'.$templateName.'.tpl';
}
/**