mirror of
https://github.com/e107inc/e107.git
synced 2025-08-07 07:06:30 +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 '';
|
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();
|
$ret = array();
|
||||||
$tp = e107::getParser();
|
$tp = e107::getParser();
|
||||||
|
$start = '';
|
||||||
|
$end = '';
|
||||||
|
|
||||||
$param = $parms;
|
$param = $parms;
|
||||||
$param['current_action'] = 'list';
|
$param['current_action'] = 'list';
|
||||||
// TODO more default parameters
|
// TODO more default parameters
|
||||||
|
Reference in New Issue
Block a user