]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
PollListItem: Use showNotice args
authorchimo <chimo@chromic.org>
Sun, 17 Aug 2014 17:39:19 +0000 (13:39 -0400)
committerchimo <chimo@chromic.org>
Sun, 17 Aug 2014 17:39:19 +0000 (13:39 -0400)
plugins/Poll/lib/polllistitem.php

index 95f3f47465998508a8d4d350928df4636339a828..875fa9c7d944040c174fd7d8c9b87231a27f894e 100644 (file)
@@ -51,11 +51,8 @@ class PollListItem extends NoticeListItemAdapter
     const POLL_OBJECT          = 'http://activityschema.org/object/poll';
     const POLL_RESPONSE_OBJECT = 'http://activityschema.org/object/poll-response';
 
-    function showNotice()
+    function showNotice(Notice $notice, $out)
     {
-        $notice = $this->nli->notice;
-        $out = $this->nli->out;
-
         switch ($notice->object_type) {
         case self::POLL_OBJECT:
             return $this->showNoticePoll($notice, $out);