use Notice::attachments() to get attachments for a notice

This commit is contained in:
Evan Prodromou 2011-08-02 18:22:06 -04:00
parent d918ee95f4
commit 9cab0958f5
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ class AttachmentList extends Widget
*/
function show()
{
$att = File::getAttachments($this->notice->id);
$att = $this->notice->attachments();
if (empty($att)) return 0;
$this->showListStart();