From 223c49614c00526c85f605ee3edd2eb105590e92 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Wed, 21 Sep 2016 17:42:31 +0200 Subject: [PATCH] Use short array syntax --- .../lib/system/cronjob/ArticlePublicationCronjob.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/cronjob/ArticlePublicationCronjob.class.php b/wcfsetup/install/files/lib/system/cronjob/ArticlePublicationCronjob.class.php index 4d70c0bbf5..81e4039dfa 100644 --- a/wcfsetup/install/files/lib/system/cronjob/ArticlePublicationCronjob.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/ArticlePublicationCronjob.class.php @@ -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, -- 2.20.1