diff options
| author | wn_ <invalid@email.com> | 2024-12-15 18:14:42 +0000 |
|---|---|---|
| committer | wn_ <invalid@email.com> | 2024-12-15 18:39:03 +0000 |
| commit | f9b2291c28e7036276134aac84ec456fbd297d30 (patch) | |
| tree | 82299fdc13a4e0950126c0ec889d4a9e020748f6 /classes/Pref_Feeds.php | |
| parent | 119c7f13dcb9b91368304e3affd0219108ec490f (diff) | |
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'.
Diffstat (limited to 'classes/Pref_Feeds.php')
| -rw-r--r-- | classes/Pref_Feeds.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/classes/Pref_Feeds.php b/classes/Pref_Feeds.php index b8edd3eb7..537cc3c86 100644 --- a/classes/Pref_Feeds.php +++ b/classes/Pref_Feeds.php @@ -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); |