Skip to content

Commit

Permalink
Fix incorrect currentPage file name
Browse files Browse the repository at this point in the history
  • Loading branch information
nzxl101 committed Sep 18, 2024
1 parent 0564cf8 commit c4f8899
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions root/app/www/public/ajax/shared.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
}
}

$ajaxFile = str_replace('/config/www/ajax/', '', debug_backtrace()[0]['file']);
$page = str_replace('.php', '', $ajaxFile);
$ajaxFile = basename(debug_backtrace()[0]['file'], '.php');
$page = $ajaxFile;

if ($page == 'login' && $_SESSION['authenticated']) {
$page = 'overview';
Expand Down

0 comments on commit c4f8899

Please sign in to comment.