Commit 7f0c7e8e authored by mmn's avatar mmn

Widgets require Action not HTMLOutputter (getScoped)

parent 2e77cbfa
...@@ -51,7 +51,7 @@ class AccountProfileBlock extends ProfileBlock ...@@ -51,7 +51,7 @@ class AccountProfileBlock extends ProfileBlock
protected $profile = null; protected $profile = null;
protected $user = null; protected $user = null;
function __construct(HTMLOutputter $out, Profile $profile) function __construct(Action $out, Profile $profile)
{ {
parent::__construct($out); parent::__construct($out);
$this->profile = $profile; $this->profile = $profile;
......
...@@ -65,7 +65,7 @@ class NoticeListItem extends Widget ...@@ -65,7 +65,7 @@ class NoticeListItem extends Widget
* *
* @param Notice $notice The notice we'll display * @param Notice $notice The notice we'll display
*/ */
function __construct(Notice $notice, HTMLOutputter $out=null) function __construct(Notice $notice, Action $out=null)
{ {
parent::__construct($out); parent::__construct($out);
if (!empty($notice->repeat_of)) { if (!empty($notice->repeat_of)) {
......
...@@ -50,7 +50,7 @@ class ThreadedNoticeList extends NoticeList ...@@ -50,7 +50,7 @@ class ThreadedNoticeList extends NoticeList
{ {
protected $userProfile; protected $userProfile;
function __construct(Notice $notice, HTMLOutputter $out=null, $profile=-1) function __construct(Notice $notice, Action $out=null, $profile=-1)
{ {
parent::__construct($notice, $out); parent::__construct($notice, $out);
if (is_int($profile) && $profile == -1) { if (is_int($profile) && $profile == -1) {
...@@ -174,7 +174,7 @@ class ThreadedNoticeListItem extends NoticeListItem ...@@ -174,7 +174,7 @@ class ThreadedNoticeListItem extends NoticeListItem
{ {
protected $userProfile = null; protected $userProfile = null;
function __construct(Notice $notice, HTMLOutputter $out=null, $profile=null) function __construct(Notice $notice, Action $out=null, $profile=null)
{ {
parent::__construct($notice, $out); parent::__construct($notice, $out);
$this->userProfile = $profile; $this->userProfile = $profile;
...@@ -340,7 +340,7 @@ class ThreadedNoticeListMoreItem extends NoticeListItem ...@@ -340,7 +340,7 @@ class ThreadedNoticeListMoreItem extends NoticeListItem
{ {
protected $cnt; protected $cnt;
function __construct(Notice $notice, HTMLOutputter $out, $cnt) function __construct(Notice $notice, Action $out, $cnt)
{ {
parent::__construct($notice, $out); parent::__construct($notice, $out);
$this->cnt = $cnt; $this->cnt = $cnt;
......
...@@ -54,7 +54,7 @@ class Widget ...@@ -54,7 +54,7 @@ class Widget
protected $avatarSize = AVATAR_STREAM_SIZE; protected $avatarSize = AVATAR_STREAM_SIZE;
/** /**
* HTMLOutputter to use for output * Action (HTMLOutputter) to use for output
*/ */
var $out = null; var $out = null;
...@@ -62,10 +62,10 @@ class Widget ...@@ -62,10 +62,10 @@ class Widget
/** /**
* Prepare the widget for use * Prepare the widget for use
* *
* @param HTMLOutputter $out output helper, defaults to null * @param Action $out output helper, defaults to null
*/ */
function __construct(HTMLOutputter $out=null) function __construct(Action $out=null)
{ {
$this->out = $out; $this->out = $out;
} }
......
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