mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 00:19:05 +00:00
Fix variable syntax deprecation warnings
This commit is contained in:
parent
9de638a920
commit
bfbdf1c3b9
@ -618,9 +618,9 @@ class Page {
|
||||
|
||||
function append_param($url, $param) {
|
||||
if (preg_match("/\?[a-z]+=/", $url)) {
|
||||
return "${url}&${param}";
|
||||
return "{$url}&{$param}";
|
||||
}
|
||||
return "${url}?${param}";
|
||||
return "{$url}?{$param}";
|
||||
}
|
||||
|
||||
function link($url) {
|
||||
|
@ -7,7 +7,7 @@ if ($page->settings->simple_urls && count($_GET) !== 0) {
|
||||
$target = $page->get_requested_page();
|
||||
|
||||
if ($target !== "index" && strlen($target) <= 16 && preg_match("/^[a-z]+$/", $target)) {
|
||||
$local_script = "./${target}.php";
|
||||
$local_script = "./{$target}.php";
|
||||
if (file_exists($local_script)) {
|
||||
require_once $local_script;
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user