Robust
Well-known member
For the code event notices_prepare (in ViewRenderer/HtmlPublic, _getNoticesContainerParams) if we're calling that event and adding a notice to $noticesList, we need to explicitly define every attribute, leading to mess like this:
Shouldn't XF be defining default data, not us?
$noticeList['confirm_test'] = array(
'title' => 'Confirm Test',
'message' => 'hi',
'wrap' => true,
'dismissible' => false,
'delay_duration' => '',
'display_duration' => '',
'auto_dismiss' => false,
'display_image' => '',
'display_style' => '',
'css_class' => '',
'visibility' => '',
'notice_type' => 'block'
);
Shouldn't XF be defining default data, not us?