git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 930b0967 authored by mmn's avatar mmn

Actually use the PrimaryNoticeList in actions

parent a3b9367c
......@@ -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);
}
......
......@@ -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);
}
......
......@@ -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) {
......
......@@ -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);
}
......
......@@ -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();
......
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment