Tweak the 'Feeds::_get_title()' param order to make PHP happy.

Required params need to go before optional.
This commit is contained in:
wn_
2025-08-29 12:27:44 +00:00
parent fd5ce90efe
commit ecef0ae951
6 changed files with 13 additions and 13 deletions

View File

@@ -264,7 +264,7 @@ class Pref_Filters extends Handler_Protected {
array_push($feeds_fmt, Feeds::_get_cat_title($feed_id, $_SESSION['uid']));
} else {
if ($feed_id)
array_push($feeds_fmt, Feeds::_get_title((int)$feed_id, false, $_SESSION['uid']));
array_push($feeds_fmt, Feeds::_get_title((int)$feed_id, $_SESSION['uid']));
else
array_push($feeds_fmt, __("All feeds"));
}
@@ -276,7 +276,7 @@ class Pref_Filters extends Handler_Protected {
$where = $rule->cat_filter ?
Feeds::_get_cat_title($rule->cat_id ?? 0, $_SESSION['uid']) :
($rule->feed_id ?
Feeds::_get_title($rule->feed_id, false, $_SESSION['uid']) : __("All feeds"));
Feeds::_get_title($rule->feed_id, $_SESSION['uid']) : __("All feeds"));
}
$inverse_class = $rule->inverse ? "inverse" : "";
@@ -463,7 +463,7 @@ class Pref_Filters extends Handler_Protected {
array_push($feeds_fmt, Feeds::_get_cat_title($feed_id, $_SESSION['uid']));
} else {
if ($feed_id)
array_push($feeds_fmt, Feeds::_get_title((int)$feed_id, false, $_SESSION['uid']));
array_push($feeds_fmt, Feeds::_get_title((int)$feed_id, $_SESSION['uid']));
else
array_push($feeds_fmt, __("All feeds"));
}