]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Actually use the PrimaryNoticeList in actions
authorMikael Nordfeldth <mmn@hethane.se>
Thu, 8 Jan 2015 19:29:09 +0000 (20:29 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Thu, 8 Jan 2015 19:29:09 +0000 (20:29 +0100)
actions/all.php
actions/public.php
actions/replies.php
actions/showgroup.php
actions/showprofiletag.php
actions/tag.php

index 5933d009466047ff4e345133c6e5598cea985502..d6dd8e8af53715bd5ac7995c61f003d75075da33 100644 (file)
@@ -156,7 +156,7 @@ class AllAction extends ProfileAction
             }
 
             if (!empty($current_user) && $current_user->streamModeOnly()) {
-                $nl = new NoticeList($this->notice, $this);
+                $nl = new PrimaryNoticeList($this->notice, $this, array('show_n'=>NOTICES_PER_PAGE));
             } else {
                 $nl = new ThreadedNoticeList($this->notice, $this, $profile);
             }
index 5e07a893ff645239ee4de3c0ccff7ff9d9a8c3df..6ebd48ba12cdd5e6a7d5652dbc81aa15868c383a 100644 (file)
@@ -220,7 +220,7 @@ class PublicAction extends Action
         $user = common_current_user();
 
         if (!empty($user) && $user->streamModeOnly()) {
-            $nl = new NoticeList($this->notice, $this);
+            $nl = new PrimaryNoticeList($this->notice, $this, array('show_n'=>NOTICES_PER_PAGE));
         } else {
             $nl = new ThreadedNoticeList($this->notice, $this, $this->userProfile);
         }
index d6d2cb4ba936938c38f65e8fcd48eaa3f424cf3d..4932520fd6fe53a61c981c210c21f8cdfe83e840 100644 (file)
@@ -186,7 +186,7 @@ class RepliesAction extends Action
      */
     function showContent()
     {
-        $nl = new NoticeList($this->notice, $this);
+        $nl = new PrimaryNoticeList($this->notice, $this, array('show_n'=>NOTICES_PER_PAGE));
 
         $cnt = $nl->show();
         if (0 === $cnt) {
index e2b5e8d547cb6ac8eea41e8f7e1f3c0592ace1df..46d0a227f536ecc4253212e6b55cb5fe2ba71d1b 100644 (file)
@@ -149,7 +149,7 @@ class ShowgroupAction extends GroupAction
         $user = common_current_user();
 
         if (!empty($user) && $user->streamModeOnly()) {
-            $nl = new NoticeList($this->notice, $this);
+            $nl = new PrimaryNoticeList($this->notice, $this, array('show_n'=>NOTICES_PER_PAGE));
         } else {
             $nl = new ThreadedNoticeList($this->notice, $this, $this->userProfile);
         } 
index 44ded832b826e1cb8b61f044d8c6f573b4fb2ea1..d96acec5909971179af04fcd377f599fd1f5fc7c 100644 (file)
@@ -254,7 +254,7 @@ class ShowprofiletagAction extends Action
     function showNotices()
     {
         if (Event::handle('StartShowProfileTagContent', array($this))) {
-            $nl = new NoticeList($this->notice, $this);
+            $nl = new PrimaryNoticeList($this->notice, $this, array('show_n'=>NOTICES_PER_PAGE));
 
             $cnt = $nl->show();
 
index 5e52630c8556660038f62c3ee1e854c9d1dbc09c..0fc2c5152e530acb3b186503ba4b305819a1bc64 100644 (file)
@@ -110,7 +110,7 @@ class TagAction extends ManagedAction
     {
         if(Event::handle('StartTagShowContent', array($this))) {
 
-            $nl = new NoticeList($this->notice, $this);
+            $nl = new PrimaryNoticeList($this->notice, $this, array('show_n'=>NOTICES_PER_PAGE));
 
             $cnt = $nl->show();