From 8dcce13297dce70d993956c2e05f2b91f3c19c46 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 11 Dec 2008 18:12:52 -0500 Subject: make a new NoticeList widget and call it from StreamAction I made a new notice-list widget (like the profile list) and call it from StreamAction. This cleans up some of the mess in the various notice-stream-showing classes. I also changed show-stream so it uses a subclass of NoticeList that doesn't show author info (which is unnecessary). darcs-hash:20081211231252-5ed1f-ee6e551ed5a029406748120f12e2ff57c4a86493.gz --- actions/shownotice.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'actions/shownotice.php') diff --git a/actions/shownotice.php b/actions/shownotice.php index b60b6f5a7..6dea6d7bb 100644 --- a/actions/shownotice.php +++ b/actions/shownotice.php @@ -77,7 +77,8 @@ class ShownoticeAction extends StreamAction { array($this, 'show_top')); common_element_start('ul', array('id' => 'notices')); - $this->show_notice($this->notice); + $nli = new NoticeListItem($this->notice); + $nli->show(); common_element_end('ul'); common_show_footer(); -- cgit v1.2.3-54-g00ecf