mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-07-10 07:47:34 +00:00
Simple URLs: Fix error on handling regular URLs
This commit is contained in:
parent
5a0826db1d
commit
3a2e1ed25e
@ -70,10 +70,14 @@ class Page {
|
|||||||
if ($settings->simple_urls) {
|
if ($settings->simple_urls) {
|
||||||
$keys = array_keys($_GET);
|
$keys = array_keys($_GET);
|
||||||
|
|
||||||
|
if (count($keys) > 0) {
|
||||||
$request_path = $keys[0];
|
$request_path = $keys[0];
|
||||||
$local_path = substr($request_path, strlen($this->index_base_path));
|
$local_path = substr($request_path, strlen($this->index_base_path));
|
||||||
|
|
||||||
$this->args = explode("/", substr($local_path, strpos($local_path, "/") + 1));
|
$this->args = explode("/", substr($local_path, strpos($local_path, "/") + 1));
|
||||||
|
} else {
|
||||||
|
$this->args = array();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$argc = count($this->args);
|
$argc = count($this->args);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user