From 01a52f28b5e2bf444cb930367a72aff0f217d582 Mon Sep 17 00:00:00 2001 From: Mohamad Damaj Date: Mon, 26 Jun 2023 11:20:21 +0300 Subject: [PATCH] fix debug --- site/blog/index.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/site/blog/index.php b/site/blog/index.php index 34d327e..ce12c5a 100644 --- a/site/blog/index.php +++ b/site/blog/index.php @@ -30,11 +30,13 @@ usort($items, function($a, $b) { $b_time = DateTime::createFromFormat('D, d M Y H:i:s O', $b->pubDate)->getTimestamp(); return $b_time - $a_time; }); - -// Loop through the sorted items and display them +// Debugging foreach ($items as $item) { // Debugging echo $item->pubDate . ' => ' . strtotime($item->pubDate) . '
'; +} +// Loop through the sorted items and display them +foreach ($items as $item) { // Add a box around the article echo '
';