Clean PHP code.
This commit is contained in:
parent
e199be6363
commit
9f53ddd3f3
1 changed files with 1 additions and 2 deletions
|
@ -13,8 +13,7 @@ class Fallback {
|
|||
|
||||
private function get_current_path() {
|
||||
|
||||
$uri_parts = parse_url($this->setup->get('REQUEST_URI'));
|
||||
$current_href = Util::normalize_path($uri_parts['path'], true);
|
||||
$current_href = Util::normalize_path(parse_url($this->setup->get('REQUEST_URI'), PHP_URL_PATH), true);
|
||||
$current_path = $this->app->to_path($current_href);
|
||||
|
||||
if (!is_dir($current_path)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue