* @link http://status.net/
*/
-if (!defined('STATUSNET') && !defined('LACONICA')) {
- exit(1);
-}
+if (!defined('GNUSOCIAL')) { exit(1); }
/**
* Base class for UI widgets
protected $avatarSize = AVATAR_STREAM_SIZE;
/**
- * HTMLOutputter to use for output
+ * Action (HTMLOutputter) to use for output
*/
var $out = null;
/**
* 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, array $widgetOpts=array())
{
$this->out = $out;
+ if (!array_key_exists('scoped', $widgetOpts)) {
+ $this->widgetOpts['scoped'] = Profile::current();
+ }
+ $this->scoped = $this->widgetOpts['scoped'];
}
/**