mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-09 07:16:40 +02:00
Clean PHP code.
This commit is contained in:
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user