Remove daux.phar

This commit is contained in:
Stéphane Goetz
2017-10-18 21:15:35 +02:00
parent 0270e14121
commit 0d3e366277
8 changed files with 7 additions and 255 deletions

View File

@ -15,14 +15,10 @@ class Template
*/
public function __construct($base, $theme)
{
// Use internal templates or the ones in the phar
// archive if no templates dir exists in the working directory
// Use internal templates if no templates
// dir exists in the working directory
if (!is_dir($base)) {
if (is_dir(__DIR__ . '/../../../templates')) {
$base = __DIR__ . '/../../../templates';
} else {
$base = 'phar://daux.phar/templates';
}
$base = __DIR__ . '/../../../templates';
}
// Create new Plates instance