From ecef0ae9512a3227221e107fe47dab91da6e5f4c Mon Sep 17 00:00:00 2001 From: wn_ Date: Fri, 29 Aug 2025 12:27:44 +0000 Subject: Tweak the 'Feeds::_get_title()' param order to make PHP happy. Required params need to go before optional. --- classes/Pref_Feeds.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'classes/Pref_Feeds.php') diff --git a/classes/Pref_Feeds.php b/classes/Pref_Feeds.php index 2e3821c45..e27a9ccbd 100644 --- a/classes/Pref_Feeds.php +++ b/classes/Pref_Feeds.php @@ -1115,7 +1115,7 @@ class Pref_Feeds extends Handler_Protected { */ private function feedlist_init_feed(int $feed_id, ?string $title = null, bool $unread = false, string $error = '', string $updated = ''): array { if (!$title) - $title = Feeds::_get_title($feed_id, false, $_SESSION['uid']); + $title = Feeds::_get_title($feed_id, $_SESSION['uid']); if ($unread === false) $unread = Feeds::_get_counters($feed_id, false, true); @@ -1284,7 +1284,7 @@ class Pref_Feeds extends Handler_Protected { ]); print json_encode([ - "title" => Feeds::_get_title($feed_id, $is_cat, $_SESSION['uid']), + "title" => Feeds::_get_title($feed_id, $_SESSION['uid'], $is_cat), "link" => $link ]); } -- cgit v1.2.3-54-g00ecf