mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 16:32:45 +00:00
Fix history.php / info.php error when simple_urls is disabled
This commit is contained in:
parent
9630eaa52b
commit
4443721716
@ -97,7 +97,7 @@ class Page {
|
||||
|
||||
public function get_requested_page() {
|
||||
$keys = array_keys($_GET);
|
||||
if (count($keys) == 0) return "";
|
||||
if (count($keys) == 0 || !$this->is_index) return "";
|
||||
|
||||
$request_path = $keys[0];
|
||||
$local_path = substr($request_path, strlen($this->index_base_path));
|
||||
|
Loading…
x
Reference in New Issue
Block a user