From 83a05724b8f0eb111cf8865c6059d8ff417300b4 Mon Sep 17 00:00:00 2001 From: Diogo Cordeiro Date: Mon, 24 Jun 2019 14:01:37 +0100 Subject: [PATCH] [CORE] Fix subscriptions and subscribers list (related to 44653d339d) --- actions/subscribers.php | 2 +- actions/subscriptions.php | 2 +- lib/framework.php | 2 +- lib/profilelist.php | 2 +- lib/subscriptionlist.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/actions/subscribers.php b/actions/subscribers.php index 81ab70e21e..87489fb69a 100644 --- a/actions/subscribers.php +++ b/actions/subscribers.php @@ -92,7 +92,7 @@ class SubscribersAction extends GalleryAction } if ($subscribers) { - $subscribers_list = new SubscribersList($subscribers, $this->target, $this); + $subscribers_list = new SubscribersList($subscribers, $this->target->getUser(), $this); $cnt = $subscribers_list->show(); if (0 == $cnt) { $this->showEmptyListMessage(); diff --git a/actions/subscriptions.php b/actions/subscriptions.php index 6e9e163d33..152c5f6f25 100644 --- a/actions/subscriptions.php +++ b/actions/subscriptions.php @@ -96,7 +96,7 @@ class SubscriptionsAction extends GalleryAction } if ($subscriptions) { - $subscriptions_list = new SubscriptionsList($subscriptions, $this->target, $this); + $subscriptions_list = new SubscriptionsList($subscriptions, $this->target->getUser(), $this); $cnt = $subscriptions_list->show(); if (0 == $cnt) { $this->showEmptyListMessage(); diff --git a/lib/framework.php b/lib/framework.php index 18fc84c2ff..ebeb61b260 100644 --- a/lib/framework.php +++ b/lib/framework.php @@ -32,7 +32,7 @@ defined('GNUSOCIAL') || die(); define('GNUSOCIAL_ENGINE', 'GNU social'); define('GNUSOCIAL_ENGINE_URL', 'https://www.gnu.org/software/social/'); -define('GNUSOCIAL_BASE_VERSION', '1.20.3'); +define('GNUSOCIAL_BASE_VERSION', '1.20.4'); define('GNUSOCIAL_LIFECYCLE', 'release'); // 'dev', 'alpha[0-9]+', 'beta[0-9]+', 'rc[0-9]+', 'release' define('GNUSOCIAL_VERSION', GNUSOCIAL_BASE_VERSION . '-' . GNUSOCIAL_LIFECYCLE); diff --git a/lib/profilelist.php b/lib/profilelist.php index 9f735b1b88..633a31a9d7 100644 --- a/lib/profilelist.php +++ b/lib/profilelist.php @@ -46,7 +46,7 @@ class ProfileList extends Widget /** Action object using us. */ var $action = null; - function __construct($profile, HTMLOutputter $action=null) + function __construct($profile, HTMLOutputter $action = null) { parent::__construct($action); diff --git a/lib/subscriptionlist.php b/lib/subscriptionlist.php index 6f4d1a4a73..688ede3fbd 100644 --- a/lib/subscriptionlist.php +++ b/lib/subscriptionlist.php @@ -44,7 +44,7 @@ class SubscriptionList extends ProfileList /** Owner of this list */ var $owner = null; - public function __construct($profile, $owner=null, $action=null) + public function __construct($profile, $owner = null, $action = null) { parent::__construct($profile, $action);