Skip to content

Commit

Permalink
Update Frontend.php
Browse files Browse the repository at this point in the history
  • Loading branch information
asilvafx authored Nov 16, 2024
1 parent e88d073 commit 4689c4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/core/models/Frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ function Assets($f3, $args)
{
$slug = empty($args[0]) ? '' : $args[0];

$file_url = BASE_PATH . '/ui/' . $slug;
if (!file_exists($file_url)) {
$file_url = BASE_PATH . '/' . $f3->get('UI') . $slug;
if (!file_exists($file_url)) {
$f3->reroute('/');
} else {
header('Content-Type: application/octet-stream');
Expand Down

0 comments on commit 4689c4f

Please sign in to comment.