Tweak the 'Feeds::_get_title()' param order to make PHP happy.
Required params need to go before optional.
This commit is contained in:
@@ -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
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user