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;