mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 06:38:00 +02:00
Display an error when news template is empty or not found.
This commit is contained in:
@@ -818,8 +818,16 @@ class e_news_tree extends e_front_tree_model
|
||||
return '';
|
||||
}
|
||||
|
||||
if(is_string($template) || empty($template))
|
||||
{
|
||||
return "<div class='alert alert-danger'>Couldn't find template/layout with the following params: ".print_a($parms,true)."</div>";
|
||||
}
|
||||
|
||||
$ret = array();
|
||||
$tp = e107::getParser();
|
||||
$start = '';
|
||||
$end = '';
|
||||
|
||||
$param = $parms;
|
||||
$param['current_action'] = 'list';
|
||||
// TODO more default parameters
|
||||
|
Reference in New Issue
Block a user