[provision] don't show file path on not found (#6229)

This commit is contained in:
agree 2022-01-06 13:47:17 -05:00 committed by GitHub
parent f52b33caf2
commit d97308e0ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1194,7 +1194,7 @@ include "root.php";
else {
//make sure the file exists
if (!file_exists($template_dir."/".$device_template ."/".$file)) {
echo "file not found ".$template_dir."/".$device_template ."/".$file;
$this->http_error('404');
if ($_SESSION['provision']['debug']['boolean'] == 'true') {
echo ":$template_dir/$device_template/$file<br/>";
echo "template_dir: $template_dir<br/>";