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
|
||||
$absolutePath = $template->getPathToTemplate();
|
||||
$content = file_get_contents($absolutePath);
|
||||
$content = @file_get_contents($absolutePath);
|
||||
|
||||
return view('admin.templates.edit', [
|
||||
'template' => $template,
|
||||
|
||||
Reference in New Issue
Block a user