Skip to content

Commit

Permalink
Fix uri reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Morris committed Apr 11, 2024
1 parent 7638954 commit 75f33a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Controllers/Front.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ public function getVideo($slug = null)
if ($slug === null || $slug === 'recent') {
$data['page'] = 1;

if ($this->request->uri->getTotalSegments() === 3
&& is_numeric($this->request->uri->getSegment(3))) {
$data['page'] = (int) (esc($this->request->uri->getSegment(3)));
if ($this->request->getUri()->getTotalSegments() === 3
&& is_numeric($this->request->getUri()->getSegment(3))) {
$data['page'] = (int) (esc($this->request->getUri()->getSegment(3)));
}

$data['sort'] = 'recent';
Expand Down

0 comments on commit 75f33a8

Please sign in to comment.