Don't bother passing unused arguments to 'TimeHelper::make_local_datetime()'.

There's no point in passing '$long' unless '$no_smart_dt' is set to 'true'.
This commit is contained in:
wn_
2024-12-15 18:14:42 +00:00
parent 119c7f13dc
commit f9b2291c28
10 changed files with 24 additions and 24 deletions

View File

@@ -103,7 +103,7 @@ class Pref_Feeds extends Handler_Protected {
'param' => T_sprintf(
_ngettext("(%d article / %s)", "(%d articles / %s)", $feed->num_articles),
$feed->num_articles,
TimeHelper::make_local_datetime($feed->last_updated, true)),
TimeHelper::make_local_datetime($feed->last_updated)),
'updates_disabled' => (int)($feed->update_interval < 0),
]);
}
@@ -290,7 +290,7 @@ class Pref_Feeds extends Handler_Protected {
'param' => T_sprintf(
_ngettext("(%d article / %s)", "(%d articles / %s)", $feed->num_articles),
$feed->num_articles,
TimeHelper::make_local_datetime($feed->last_updated, true)),
TimeHelper::make_local_datetime($feed->last_updated)),
'unread' => -1,
'type' => 'feed',
'updates_disabled' => (int)($feed->update_interval < 0),
@@ -333,7 +333,7 @@ class Pref_Feeds extends Handler_Protected {
'param' => T_sprintf(
_ngettext("(%d article / %s)", "(%d articles / %s)", $feed->num_articles),
$feed->num_articles,
TimeHelper::make_local_datetime($feed->last_updated, true)),
TimeHelper::make_local_datetime($feed->last_updated)),
'unread' => -1,
'type' => 'feed',
'updates_disabled' => (int)($feed->update_interval < 0),
@@ -1161,7 +1161,7 @@ class Pref_Feeds extends Handler_Protected {
->find_array();
foreach ($inactive_feeds as $inactive_feed) {
$inactive_feed['last_article'] = TimeHelper::make_local_datetime($inactive_feed['last_article'], false);
$inactive_feed['last_article'] = TimeHelper::make_local_datetime($inactive_feed['last_article']);
}
print json_encode($inactive_feeds);