mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-08 05:18:40 +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 = '';
|
$ob = '';
|
||||||
|
|
||||||
try {
|
|
||||||
$path = __DIR__ . '/../..' . $this->template . '.tpl.php';
|
$path = __DIR__ . '/../..' . $this->template . '.tpl.php';
|
||||||
|
|
||||||
if (!file_exists($path)) {
|
if (!file_exists($path)) {
|
||||||
throw new PathException($path);
|
throw new PathException($path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
ob_start();
|
ob_start();
|
||||||
/** @noinspection PhpIncludeInspection */
|
/** @noinspection PhpIncludeInspection */
|
||||||
$data = include $path;
|
$data = include $path;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user