Fixes problem to render sub files (#468)

into nginx server
This commit is contained in:
Ricardo Souza 2021-04-03 20:12:55 -03:00 committed by GitHub
parent d74400da57
commit 855c889568
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -148,8 +148,8 @@ if ($config['log_ip']) {
}
// Sub page override system
$filename = explode('/', $_SERVER['PHP_SELF']);
$filename = $filename[count($filename)-1];
$filename = explode('/', $_SERVER['SCRIPT_NAME']);
$filename = $filename[count($filename) - 1];
$page_filename = str_replace('.php', '', $filename);
if ($config['allowSubPages']) {
require_once 'layout/sub.php';