From 763228a8832253c3a9598607776851c6af41554e Mon Sep 17 00:00:00 2001 From: User Date: Wed, 10 Apr 2024 03:21:30 +0300 Subject: [PATCH] 20240410#6 --- src/Content.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Content.php b/src/Content.php index 1feea90..ca7c808 100644 --- a/src/Content.php +++ b/src/Content.php @@ -21,13 +21,13 @@ class Content implements TemplateInterface { $this->{$resKey} = $resVal; } ContentData::$basePath = dirname(__DIR__, 4); - ContentData::$template = ContentData::$basePath.$template; + ContentData::$template = ContentData::$basePath.rtrim($template, '/'); return $this; } /** @inheritDoc */ public function setSubtemplatePath(string $subtemplatePath = "") : TemplateInterface { - ContentData::$subtemplatePath = ContentData::$basePath.$subtemplatePath; + ContentData::$subtemplatePath = ContentData::$basePath.rtrim($subtemplatePath, '/'); return $this; }