mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 01:09:21 +02:00
Throw an exception if template index file cannot be found
This commit is contained in:
parent
ff135c034c
commit
b50d0cd710
@ -46,6 +46,9 @@ else {
|
||||
$template_name = 'kathrine';
|
||||
$template_path = 'templates/' . $template_name;
|
||||
$template_index = 'template.php';
|
||||
if(!file_exists(BASE . $template_path . '/' . $template_index)) {
|
||||
throw new RuntimeException('Cannot load any template. Please ensure your templates directory is not empty, and you set correct name for template in configuration.');
|
||||
}
|
||||
}
|
||||
|
||||
if(file_exists(BASE . $template_path . '/config.php')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user