1
0

missing commit

This commit is contained in:
Garvin Hicking
2010-12-21 19:41:19 +00:00
parent aca4ba7d60
commit e46563693c
4 changed files with 46 additions and 8 deletions

View File

@ -513,14 +513,13 @@ function serendipity_smarty_hookPlugin($params, &$smarty) {
'entries_footer',
'frontend_comment',
'frontend_footer');
if (!isset($params['hook'])) {
$smarty->trigger_error(__FUNCTION__ .": missing 'hook' parameter");
return;
}
if (!in_array($params['hook'], $hookable) && $params['hookAll'] != 'true') {
$smarty->trigger_error(__FUNCTION__ .": illegal hook '". $params['hook'] ."'");
$smarty->trigger_error(__FUNCTION__ .": illegal hook '". $params['hook'] ."' (" . $params['hookAll'] . ")");
return;
}