From bfbdf1c3b9bc177644b91143c2595ef2cac9406d Mon Sep 17 00:00:00 2001 From: ruan <2369127-ruany@users.noreply.gitlab.com> Date: Tue, 7 Feb 2023 11:00:25 +0200 Subject: [PATCH] Fix variable syntax deprecation warnings --- inc/page.php | 4 ++-- index.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/page.php b/inc/page.php index 99ba862..1bd5728 100644 --- a/inc/page.php +++ b/inc/page.php @@ -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) { diff --git a/index.php b/index.php index d6fe93d..d2a2663 100644 --- a/index.php +++ b/index.php @@ -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;