forked from GNUsocial/gnu-social
Make the feedlist work -- kinda
This commit is contained in:
parent
082db2ad7d
commit
37350e873d
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user