Skip to content

Commit

Permalink
#130 Order by date published
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaliy-1 committed Apr 20, 2021
1 parent 2143967 commit 05db114
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion OldGreggThemePlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ public function browseLatest($hookName, $args)
$publishedArticleObjects = Services::get("submission")->getMany([
'status' => STATUS_PUBLISHED,
'contextId' => $journalId,
'count' => $latestArticles
'count' => $latestArticles,
'orderBy' => 'datePublished',
]);

$smarty->assign('publishedArticles', iterator_to_array($publishedArticleObjects));
Expand Down

0 comments on commit 05db114

Please sign in to comment.