Make the feedlist work -- kinda

This commit is contained in:
Evan Prodromou 2009-01-15 20:22:14 +00:00
parent 082db2ad7d
commit 37350e873d
2 changed files with 8 additions and 6 deletions

View File

@ -33,6 +33,7 @@ if (!defined('LACONICA')) {
require_once INSTALLDIR.'/lib/publicgroupnav.php';
require_once INSTALLDIR.'/lib/noticelist.php';
require_once INSTALLDIR.'/lib/feedlist.php';
/**
* Action for displaying the public stream

View File

@ -47,13 +47,14 @@ if (!defined('LACONICA')) {
* @see Action::showExportList()
*/
class FeedList
class FeedList extends Widget
{
var $out = null;
var $action = null;
function __construct($out=null)
function __construct($action=null)
{
$this->out = $out;
parent::__construct($action);
$this->action = $action;
}
function show($feeds)
@ -72,7 +73,7 @@ class FeedList
function feedItem($feed)
{
$nickname = $this->trimmed('nickname');
$nickname = $this->action->trimmed('nickname');
switch($feed['item']) {
case 'notices': default: