From 0fd7ba16e97735be5ba18e3f7b9b270becbe1257 Mon Sep 17 00:00:00 2001 From: ghost Date: Sat, 3 Feb 2024 19:38:49 +0200 Subject: [PATCH] fix relative links --- src/controller/room.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/controller/room.php b/src/controller/room.php index eb956f2..c15e69b 100644 --- a/src/controller/room.php +++ b/src/controller/room.php @@ -780,19 +780,7 @@ class Room private function _link(?string $path = null, ?string $name = null, ?bool $tag = false) { - return - ( - $tag ? '=> ' : null - ) - . - sprintf( - '/%s', - $path - ) - . - ( - $name ? ' ' . $name : null - ); + return ($tag ? '=> ' : null) . $path . ($name ? ' ' . $name : null); } private function _clitoris(string $namespace, ?int $cache = 31104000): ?string