mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-07-09 15:27:32 +00:00
Simple URLs: Fix error on handling regular URLs
This commit is contained in:
parent
5a0826db1d
commit
3a2e1ed25e
10
inc/page.php
10
inc/page.php
@ -70,10 +70,14 @@ class Page {
|
||||
if ($settings->simple_urls) {
|
||||
$keys = array_keys($_GET);
|
||||
|
||||
$request_path = $keys[0];
|
||||
$local_path = substr($request_path, strlen($this->index_base_path));
|
||||
if (count($keys) > 0) {
|
||||
$request_path = $keys[0];
|
||||
$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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user