20240410#6

This commit is contained in:
User
2024-04-10 03:21:30 +03:00
parent a576bf0638
commit 763228a883

View File

@@ -21,13 +21,13 @@ class Content implements TemplateInterface {
$this->{$resKey} = $resVal; $this->{$resKey} = $resVal;
} }
ContentData::$basePath = dirname(__DIR__, 4); ContentData::$basePath = dirname(__DIR__, 4);
ContentData::$template = ContentData::$basePath.$template; ContentData::$template = ContentData::$basePath.rtrim($template, '/');
return $this; return $this;
} }
/** @inheritDoc */ /** @inheritDoc */
public function setSubtemplatePath(string $subtemplatePath = "") : TemplateInterface { public function setSubtemplatePath(string $subtemplatePath = "") : TemplateInterface {
ContentData::$subtemplatePath = ContentData::$basePath.$subtemplatePath; ContentData::$subtemplatePath = ContentData::$basePath.rtrim($subtemplatePath, '/');
return $this; return $this;
} }