Fix variable syntax deprecation warnings

This commit is contained in:
ruan 2023-02-07 11:00:25 +02:00
parent 9de638a920
commit bfbdf1c3b9
2 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -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;