*/
function showContent()
{
- $ct = new FullThreadedNoticeList($this->notices, $this);
+ $ct = new FullThreadedNoticeList($this->notices, $this, $this->userProfile);
$cnt = $ct->show();
}
function showAjax()
{
- header('Content-Type: text/xml;charset=utf-8');
- $this->xw->startDocument('1.0', 'UTF-8');
- $this->elementStart('html');
+ $this->startHTML('text/xml;charset=utf-8');
$this->elementStart('head');
// TRANS: Title for conversation page.
$this->element('title', null, _m('TITLE','Notice'));
$this->elementStart('body');
$this->showContent();
$this->elementEnd('body');
- $this->elementEnd('html');
- }
-}
-
-class FullThreadedNoticeList extends ThreadedNoticeList
-{
- function newListItem($notice)
- {
- return new FullThreadedNoticeListItem($notice, $this->out);
- }
-}
-
-class FullThreadedNoticeListItem extends ThreadedNoticeListItem
-{
- function initialItems()
- {
- return 1000; // @fixme
+ $this->endHTML();
}
}