X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=mdref%2FPath.php;h=e0d00c752195b90ba4ef7f8280c8257d5a6809f0;hb=88eccca8a8f42b9432dd35ad78d7b3fa999b21b1;hp=efa208a31847dc9bafa6e22f436991cc32b1b050;hpb=1a5b9091eb508456beff1dc09e2af3301f880c47;p=mdref%2Fmdref diff --git a/mdref/Path.php b/mdref/Path.php index efa208a..e0d00c7 100644 --- a/mdref/Path.php +++ b/mdref/Path.php @@ -70,7 +70,15 @@ class Path * @return string */ function getFullPath($ext = "") { - return $this->baseDir . DIRECTORY_SEPARATOR . $this->path . $ext; + $path = ""; + if (strlen($this->baseDir)) { + $path .= $this->baseDir . DIRECTORY_SEPARATOR; + } + if (strlen($this->path)) { + $path .= $this->path; + } + $path .= $ext; + return $path; } /** @@ -97,4 +105,4 @@ class Path } return $head . "
" . $html ."
"; } -} \ No newline at end of file +}