- // args: notice object, html outputter, preference array for list and items
- $list = new SectionNoticeList($this->getNotices(), $this->out);
+ $prefs = array();
+ foreach (array('addressees', 'attachments', 'maxchars', 'options', 'show_n') as $key) {
+ $prefs[$key] = $this->$key;
+ }
+ $prefs['id_prefix'] = $this->divId();
+
+ // args: notice object, html outputter, preference array for notice lists and their items
+ $list = new NoticeList($this->getNotices(), $this->out, $prefs);