Use short array syntax
authorMatthias Schmidt <gravatronics@live.com>
Wed, 21 Sep 2016 15:42:31 +0000 (17:42 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 21 Sep 2016 15:42:34 +0000 (17:42 +0200)
wcfsetup/install/files/lib/system/cronjob/ArticlePublicationCronjob.class.php

index 4d70c0bbf5188f08149b96ae5cc3117095c4352f..81e4039dfa81eccab47603f5968a81313029efd8 100644 (file)
@@ -30,7 +30,7 @@ class ArticlePublicationCronjob extends AbstractCronjob {
                $articleList->readObjects();
                
                foreach ($articleList as $article) {
-                       $action = new ArticleAction(array($article), 'update', [
+                       $action = new ArticleAction([$article], 'update', [
                                'data' => [
                                        'time' => $article->publicationDate,
                                        'publicationStatus' => Article::PUBLISHED,