Skip to content

Commit 22bc153

Browse files
committed
Set default resolution of ${basename} to dirname of realpath of config file instead of only relative dir
1 parent 555ede9 commit 22bc153

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config/GlobalConfig.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ protected function runResolver($ctx) {
114114
}
115115

116116
$vars = array(
117-
'basedir' => $ctx->getAttribute('basedir', $this->file->getPath()),
117+
'basedir' => $ctx->getAttribute('basedir', dirname($this->file->getRealPath())),
118118

119119
'phpDox.home' => $home,
120120
'phpDox.file' => $this->file->getPathname(),

0 commit comments

Comments
 (0)