diff options
author | Robin Millette <millette@controlyourself.ca> | 2009-06-10 14:17:46 -0400 |
---|---|---|
committer | Robin Millette <millette@controlyourself.ca> | 2009-06-10 14:17:46 -0400 |
commit | e120cb1a5300f2e38820aa05ec9ac21073a934e0 (patch) | |
tree | 77944971d434cf62a7ce6e18a221037252bf56b1 /lib | |
parent | 207750e75774c823328889cb4102aad6a0b12281 (diff) |
Uploaded content now displays in overlay (and removed var_dump crap)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/noticeform.php | 2 | ||||
-rw-r--r-- | lib/noticelist.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/noticeform.php b/lib/noticeform.php index 5d7cf194e..3212f382a 100644 --- a/lib/noticeform.php +++ b/lib/noticeform.php @@ -148,6 +148,7 @@ class NoticeForm extends Form $this->out->element('dd', array('id' => 'notice_text-count'), '140'); $this->out->elementEnd('dl'); + $this->out->hidden('MAX_FILE_SIZE', common_config('attachments', 'file_quota')); $this->out->element('label', array('for' => 'notice_data-attach'), _('Attach')); $this->out->element('input', array('id' => 'notice_data-attach', 'type' => 'file', @@ -157,7 +158,6 @@ class NoticeForm extends Form $this->out->hidden('notice_return-to', $this->action, 'returnto'); } $this->out->hidden('notice_in-reply-to', $this->action, 'inreplyto'); - $this->out->hidden('MAX_FILE_SIZE', common_config('attachments', 'file_quota')); } /** diff --git a/lib/noticelist.php b/lib/noticelist.php index 9ace341d8..fadc238a4 100644 --- a/lib/noticelist.php +++ b/lib/noticelist.php @@ -366,7 +366,7 @@ class NoticeListItem extends Widget } $uploaded = $this->notice->getUploadedAttachment(); if ($uploaded) { - $this->out->element('a', array('href' => $uploaded, 'class' => 'attachment'), $uploaded); + $this->out->element('a', array('href' => $uploaded[0], 'class' => 'attachment', 'id' => 'attachment-' . $uploaded[1]), $uploaded[0]); } $this->out->elementEnd('p'); } |