summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-06-23 07:25:18 -0700
committerEvan Prodromou <evan@controlyourself.ca>2009-06-23 07:25:18 -0700
commite2becdb25138350170b58ae8f0d1ecd715533cf5 (patch)
treec5338cb76e9f0f09e74945f1244b743adbcc5bee /lib
parent7bcaa858af31c5c496bc5adc0c73ec333d4c1e63 (diff)
use a subclass for single notice items to show attachments
Diffstat (limited to 'lib')
-rw-r--r--lib/noticelist.php13
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/noticelist.php b/lib/noticelist.php
index ad792441a..bd4815cd6 100644
--- a/lib/noticelist.php
+++ b/lib/noticelist.php
@@ -179,7 +179,6 @@ class NoticeListItem extends Widget
{
$this->showStart();
$this->showNotice();
- $this->showNoticeAttachments();
$this->showNoticeInfo();
$this->showNoticeOptions();
$this->showEnd();
@@ -193,18 +192,6 @@ class NoticeListItem extends Widget
$this->out->elementEnd('div');
}
- function showNoticeAttachments() {
- if ($this->isUsedInList()) {
- return;
- }
- $al = new AttachmentList($this->notice, $this->out);
- $al->show();
- }
-
- function isUsedInList() {
- return 'shownotice' !== $this->out->args['action'];
- }
-
function showNoticeInfo()
{
$this->out->elementStart('div', 'entry-content');