Fixes SetupTemplateEngine
authorMatthias Schmidt <gravatronics@live.com>
Sat, 5 Jan 2013 12:55:14 +0000 (13:55 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 5 Jan 2013 12:55:14 +0000 (13:55 +0100)
wcfsetup/install/files/lib/system/template/SetupTemplateEngine.class.php

index f67a78f9adb970c790aeca75a6e76f05dcade851..2593aa93d112e1a6c62f031389b396b916952e5e 100644 (file)
@@ -1,6 +1,5 @@
 <?php
 namespace wcf\system\template;
-use wcf\system\exception\SystemException;
 
 /**
  * Loads and displays template during the setup process.
@@ -24,12 +23,7 @@ class SetupTemplateEngine extends TemplateEngine {
         * @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';
        }
        
        /**