mirror of
https://github.com/friendica/friendica
synced 2025-04-28 17:04:23 +02:00
Remove deprecated rdirname() in favor of native dirname()
This commit is contained in:
parent
5d20cd7e16
commit
07b4ceecd2
2 changed files with 1 additions and 20 deletions
|
@ -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, '/');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue