Skip to content

Commit

Permalink
Merge branch 'j42/media/lazy-images' of github.com:Digital-Peak/jooml…
Browse files Browse the repository at this point in the history
…a-cms into j42/media/lazy-images
  • Loading branch information
laoneo committed Feb 4, 2022
2 parents 77f1422 + 214ec59 commit 4d935c5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions api/components/com_content/src/Controller/ArticlesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,18 @@ public function displayList()
$this->modelState->set('filter.language', $filter->clean($apiFilterInfo['language'], 'STRING'));
}

$apiListInfo = $this->input->get('list', [], 'array');

if (array_key_exists('ordering', $apiListInfo))
{
$this->modelState->set('list.ordering', $filter->clean($apiListInfo['ordering'], 'STRING'));
}

if (array_key_exists('direction', $apiListInfo))
{
$this->modelState->set('list.direction', $filter->clean($apiListInfo['direction'], 'STRING'));
}

return parent::displayList();
}

Expand Down

0 comments on commit 4d935c5

Please sign in to comment.