]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/activitystreamjsondocument.php
Merge branch 'nightly' into 'nightly'
[quix0rs-gnu-social.git] / lib / activitystreamjsondocument.php
index 12c3882c25d444b299293f27544294762719010d..11b4e51ec86e0ee863c051fb6bb69bcc1d94001d 100644 (file)
  * @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
@@ -72,7 +69,7 @@ class ActivityStreamJSONDocument extends JSONActivityCollection
      * @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);