Changed thumbnail script to use newest posts first

This commit is contained in:
Marcin Kurczewski 2014-10-25 20:43:25 +02:00
parent 8bae666275
commit d0270824f1

View file

@ -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
{