Skip to content

Commit

Permalink
[FIX] Friendly url in php 8.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
Seiger committed Jun 19, 2023
1 parent 818812a commit 2ec0607
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/UrlProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2ec0607

Please sign in to comment.