* @link http://status.net/
*/
-if (!defined('STATUSNET'))
-{
- exit(1);
-}
+if (!defined('GNUSOCIAL')) { exit(1); }
/**
* A class for generating JSON documents that represent an Activity Streams
* @param User $cur the current authenticated user
*/
- function __construct($cur = null, $title = null, $items = null, $links = null, $url = null)
+ function __construct($cur = null, $title = null, array $items=[], $links = null, $url = null)
{
parent::__construct($items, $url);