From 2ec0607cd8a5a494c90a12417f6da30d18bc85ce Mon Sep 17 00:00:00 2001 From: Serhii Korneliuk Date: Mon, 19 Jun 2023 18:00:36 +0300 Subject: [PATCH] [FIX] Friendly url in php 8.2. --- core/src/UrlProcessor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/UrlProcessor.php b/core/src/UrlProcessor.php index 08ab31199e..9d9d0c4cff 100644 --- a/core/src/UrlProcessor.php +++ b/core/src/UrlProcessor.php @@ -543,8 +543,8 @@ public function getHiddenIdFromAlias(int $parentid, string $alias): ?int public function makeUrl(int $id, string $alias = '', string $args = '', string $scheme = ''): string { $virtualDir = $this->core->getConfig('virtual_dir'); - $f_url_prefix = $this->core->getConfig('friendly_url_prefix'); - $f_url_suffix = $this->core->getConfig('friendly_url_suffix'); + $f_url_prefix = $this->core->getConfig('friendly_url_prefix', ''); + $f_url_suffix = $this->core->getConfig('friendly_url_suffix', ''); if ($args !== '') { // add ? or & to $args if missing