mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
Added theme exists check (#679)
This commit is contained in:
parent
a152b220ad
commit
78d19700f2
1 changed files with 5 additions and 0 deletions
|
@ -109,6 +109,11 @@ class Template
|
||||||
$this->tpl = basename($root);
|
$this->tpl = basename($root);
|
||||||
$this->lang =& $lang;
|
$this->lang =& $lang;
|
||||||
$this->use_cache = $bb_cfg['xs_use_cache'];
|
$this->use_cache = $bb_cfg['xs_use_cache'];
|
||||||
|
|
||||||
|
// Check template exists
|
||||||
|
if (!file_exists($this->root) || !is_dir($this->root)) {
|
||||||
|
die("Theme ({$this->tpl}) directory not found");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue