Browse Source

fix relative links

main
ghost 9 months ago
parent
commit
0fd7ba16e9
  1. 14
      src/controller/room.php

14
src/controller/room.php

@ -780,19 +780,7 @@ class Room
private function _link(?string $path = null, ?string $name = null, ?bool $tag = false) private function _link(?string $path = null, ?string $name = null, ?bool $tag = false)
{ {
return return ($tag ? '=> ' : null) . $path . ($name ? ' ' . $name : null);
(
$tag ? '=> ' : null
)
.
sprintf(
'/%s',
$path
)
.
(
$name ? ' ' . $name : null
);
} }
private function _clitoris(string $namespace, ?int $cache = 31104000): ?string private function _clitoris(string $namespace, ?int $cache = 31104000): ?string

Loading…
Cancel
Save