From f9b2291c28e7036276134aac84ec456fbd297d30 Mon Sep 17 00:00:00 2001 From: wn_ Date: Sun, 15 Dec 2024 18:14:42 +0000 Subject: 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'. --- classes/Feeds.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'classes/Feeds.php') diff --git a/classes/Feeds.php b/classes/Feeds.php index 5c0999e2b..3eab4e9f8 100644 --- a/classes/Feeds.php +++ b/classes/Feeds.php @@ -152,7 +152,7 @@ class Feeds extends Handler_Protected { $feed_title = $qfh_ret[1]; $feed_site_url = $qfh_ret[2]; $last_error = $qfh_ret[3]; - $last_updated = TimeHelper::make_local_datetime($qfh_ret[4], false); + $last_updated = TimeHelper::make_local_datetime($qfh_ret[4]); $highlight_words = $qfh_ret[5]; $reply['first_id'] = $qfh_ret[6]; $reply['is_vfeed'] = $qfh_ret[7]; @@ -337,11 +337,11 @@ class Feeds extends Handler_Protected { $line["enclosures"] = [ 'formatted' => '', 'entries' => [] ]; } - $line["updated_long"] = TimeHelper::make_local_datetime($line["updated"],true); - $line["updated"] = TimeHelper::make_local_datetime($line["updated"], false, null, false, true); + $line["updated_long"] = TimeHelper::make_local_datetime($line["updated"]); + $line["updated"] = TimeHelper::make_local_datetime($line["updated"], eta_min: true); $line['imported'] = T_sprintf("Imported at %s", - TimeHelper::make_local_datetime($line["date_entered"], false)); + TimeHelper::make_local_datetime($line['date_entered'])); if ($line["tag_cache"]) $tags = explode(",", $line["tag_cache"]); @@ -416,7 +416,7 @@ class Feeds extends Handler_Protected { $sth->execute([$_SESSION['uid']]); $row = $sth->fetch(); - $last_updated = TimeHelper::make_local_datetime($row["last_updated"], false); + $last_updated = TimeHelper::make_local_datetime($row['last_updated']); $reply['content'] .= sprintf(__("Feeds last updated at %s"), $last_updated); -- cgit v1.2.3-54-g00ecf