* @link http://status.net/
*/
-if (!defined('STATUSNET') && !defined('LACONICA')) {
- exit(1);
-}
+if (!defined('GNUSOCIAL')) { exit(1); }
/**
* Base class for UI widgets
* @param Action $out output helper, defaults to null
*/
- function __construct(Action $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'];
}
/**