1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-11 03:04:09 +02:00

[ticket/17514] Replace phpBB3 with phpBB in phpbb namespace

PHPBB-17514
This commit is contained in:
Marc Alexander
2025-05-20 20:58:51 +02:00
parent ac233ce7ab
commit 24d4b26a82
6 changed files with 7 additions and 7 deletions

View File

@@ -125,10 +125,10 @@ class session
$page .= '?' . $query_string;
}
// The script path from the webroot to the current directory (for example: /phpBB3/adm/) : always prefixed with / and ends in /
// The script path from the webroot to the current directory (for example: /phpBB/adm/) : always prefixed with / and ends in /
$script_path = $symfony_request->getBasePath();
// The script path from the webroot to the phpBB root (for example: /phpBB3/)
// The script path from the webroot to the phpBB root (for example: /phpBB/)
$script_dirs = explode('/', $script_path);
array_splice($script_dirs, -count($page_dirs));
$root_script_path = implode('/', $script_dirs) . (count($root_dirs) ? '/' . implode('/', $root_dirs) : '');