]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/noticesection.php
new noticelist classes for primary and section lists
[quix0rs-gnu-social.git] / lib / noticesection.php
index 51c00d91bc36f4e459e7fbbb81bb012d80b02d2b..2c52d66a5913c3b2cfe23b9b6d7eeae9e8e3c7a2 100644 (file)
@@ -48,21 +48,10 @@ define('NOTICES_PER_SECTION', 6);
 
 class NoticeSection extends Section
 {
-    protected $addressees = false;
-    protected $attachments = false;
-    protected $maxchars = 140;
-    protected $options = false;
-    protected $show_n = NOTICES_PER_SECTION;
-
     function showContent()
     {
         // args: notice object, html outputter, preference array for list and items
-        $list = new NoticeList($this->getNotices(), $this->out,
-                                array('addressees' => $this->addressees,
-                                      'attachments' => $this->attachments,
-                                      'maxchars'=> $this->maxchars,
-                                      'options' => $this->options,
-                                      'show_n'  => $this->show_n));
+        $list = new SectionNoticeList($this->getNotices(), $this->out);
         $total = $list->show(); // returns total amount of notices available
         return ($total > NOTICES_PER_SECTION);  // do we have more to show?
     }