From d0270824f1d6b156dbdcdcf4c1d1028ade902b5f Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Sat, 25 Oct 2014 20:43:25 +0200 Subject: [PATCH] Changed thumbnail script to use newest posts first --- scripts/thumbnails.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/thumbnails.php b/scripts/thumbnails.php index e9a47ebc..9cd3430e 100644 --- a/scripts/thumbnails.php +++ b/scripts/thumbnails.php @@ -14,7 +14,7 @@ $size = isset($argv[1]) ? $argv[1] : 160; $postDao = Injector::get(PostDao::class); $postThumbnailService = Injector::get(PostThumbnailService::class); -foreach ($postDao->findAll() as $post) +foreach (array_reverse($postDao->findAll()) as $post) { try {