fix debug
This commit is contained in:
parent
43955e58c8
commit
01a52f28b5
|
@ -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) . '<br>';
|
||||
}
|
||||
// Loop through the sorted items and display them
|
||||
foreach ($items as $item) {
|
||||
// Add a box around the article
|
||||
echo '<div class="article-box">';
|
||||
|
||||
|
|
Reference in New Issue