Merge pull request #8056 from nupplaphil/task/remove_rdirname

Remove rdirname() in favor of native dirname()
This commit is contained in:
Michael Vogel 2020-01-04 23:36:59 +01:00 committed by GitHub
commit 05de0f4a19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 20 deletions

View file

@ -355,7 +355,7 @@ class BaseURL
if (!empty($relative_script_path)) {
// Module
if (!empty($this->server['QUERY_STRING'])) {
$this->urlPath = trim(rdirname($relative_script_path, substr_count(trim($this->server['QUERY_STRING'], '/'), '/') + 1), '/');
$this->urlPath = trim(dirname($relative_script_path, substr_count(trim($this->server['QUERY_STRING'], '/'), '/') + 1), '/');
} else {
// Root page
$this->urlPath = trim($relative_script_path, '/');