Skip to content

Commit 2ec0607

Browse files
committed
[FIX] Friendly url in php 8.2.
1 parent 818812a commit 2ec0607

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/UrlProcessor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -543,8 +543,8 @@ public function getHiddenIdFromAlias(int $parentid, string $alias): ?int
543543
public function makeUrl(int $id, string $alias = '', string $args = '', string $scheme = ''): string
544544
{
545545
$virtualDir = $this->core->getConfig('virtual_dir');
546-
$f_url_prefix = $this->core->getConfig('friendly_url_prefix');
547-
$f_url_suffix = $this->core->getConfig('friendly_url_suffix');
546+
$f_url_prefix = $this->core->getConfig('friendly_url_prefix', '');
547+
$f_url_suffix = $this->core->getConfig('friendly_url_suffix', '');
548548

549549
if ($args !== '') {
550550
// add ? or & to $args if missing

0 commit comments

Comments
 (0)