mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-14 19:18:41 +00:00
Fix invalid path exception
This commit is contained in:
parent
34021f1cd5
commit
68328c8b5c
|
|
@ -239,13 +239,14 @@ abstract class ViewAbstract implements \Serializable
|
|||
{
|
||||
$ob = '';
|
||||
|
||||
try {
|
||||
|
||||
$path = __DIR__ . '/../..' . $this->template . '.tpl.php';
|
||||
|
||||
if (!file_exists($path)) {
|
||||
throw new PathException($path);
|
||||
}
|
||||
if (!file_exists($path)) {
|
||||
throw new PathException($path);
|
||||
}
|
||||
|
||||
try {
|
||||
ob_start();
|
||||
/** @noinspection PhpIncludeInspection */
|
||||
$data = include $path;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user