From: Mikael Nordfeldth Date: Wed, 6 Jan 2016 00:25:00 +0000 (+0100) Subject: Typing to Profile X-Git-Url: https://git.mxchange.org/?p=quix0rs-gnu-social.git;a=commitdiff_plain;h=da2f179ae97766b32f84d8180068830a605c9510 Typing to Profile --- diff --git a/lib/subscriptionlist.php b/lib/subscriptionlist.php index 29c1274407..aad1f1230b 100644 --- a/lib/subscriptionlist.php +++ b/lib/subscriptionlist.php @@ -27,9 +27,7 @@ * @link http://status.net/ */ -if (!defined('STATUSNET') && !defined('LACONICA')) { - exit(1); -} +if (!defined('GNUSOCIAL')) { exit(1); } /** * Widget to show a list of subscriptions @@ -46,14 +44,14 @@ class SubscriptionList extends ProfileList /** Owner of this list */ var $owner = null; - function __construct($profile, $owner=null, $action=null) + public function __construct(Profile $profile, $owner=null, $action=null) { parent::__construct($profile, $action); $this->owner = $owner; } - function newListItem($profile) + public function newListItem(Profile $profile) { return new SubscriptionListItem($profile, $this->owner, $this->action); }