FIX Вывод статей в порядке публикации
This commit is contained in:
parent
d3819eed99
commit
d9043955cc
|
|
@ -38,7 +38,7 @@ class FeedController extends Controller
|
||||||
// --------- ARTICLES
|
// --------- ARTICLES
|
||||||
$articles = Article::model()->getAll(array(
|
$articles = Article::model()->getAll(array(
|
||||||
'where' => '`status` = "published"',
|
'where' => '`status` = "published"',
|
||||||
'order' => '`id` DESC',
|
'order' => '`pubDate` DESC',
|
||||||
'limit' => 5,
|
'limit' => 5,
|
||||||
));
|
));
|
||||||
foreach ($articles as $article) {
|
foreach ($articles as $article) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue