mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-03 18:04:08 +02:00
make order option case insensitive
This commit is contained in:
parent
d3d2b59e83
commit
faacca26fe
1 changed files with 1 additions and 1 deletions
|
|
@ -120,7 +120,7 @@ class DemoController extends BaseController {
|
||||||
|
|
||||||
public function listDemos(): void {
|
public function listDemos(): void {
|
||||||
$page = (int) $this->query('page', '1');
|
$page = (int) $this->query('page', '1');
|
||||||
$order = 'ASC' === $this->query('order', 'DESC') ? 'ASC' : 'DESC';
|
$order = 'ASC' === strtoupper($this->query('order', 'DESC')) ? 'ASC' : 'DESC';
|
||||||
$this->json($this->demoListProvider->listDemos((int) $page, $this->getFilter(), $order));
|
$this->json($this->demoListProvider->listDemos((int) $page, $this->getFilter(), $order));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue