FIX: supress error when trying to open non-existing template
This commit is contained in:
@@ -25,7 +25,7 @@ class EditTemplate extends Controller
|
|||||||
|
|
||||||
// load template content
|
// load template content
|
||||||
$absolutePath = $template->getPathToTemplate();
|
$absolutePath = $template->getPathToTemplate();
|
||||||
$content = file_get_contents($absolutePath);
|
$content = @file_get_contents($absolutePath);
|
||||||
|
|
||||||
return view('admin.templates.edit', [
|
return view('admin.templates.edit', [
|
||||||
'template' => $template,
|
'template' => $template,
|
||||||
|
|||||||
Reference in New Issue
Block a user