You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As requested by @woolfg in #78, creating a new issue for this.
If the repoPath configuration string is an absolute path, don't prepend DokuWiki's savedir to it.
One way this could be achieved is by changing:
private function initRepo() {
//get path to the repo root (by default DokuWiki's savedir)
if(defined('DOKU_FARM')) {
$repoPath = $this->getConf('repoPath');
} else {
$repoPath = DOKU_INC.$this->getConf('repoPath');
}
to:
private function initRepo() {
//get path to the repo root (by default DokuWiki's savedir)
$repoPath = $this->getConf('repoPath');
if(!defined('DOKU_FARM') && $repoPath[0] !== '/') {
$repoPath = DOKU_INC.$this->getConf('repoPath');
}
I have tested the above change and it works with both absolute and relative paths. I'm submitting this as an issue instead of as a pull request because I've never written PHP before and I'm not familiar with the dokuwiki or gitbacked plugin codebases.
The text was updated successfully, but these errors were encountered:
As requested by @woolfg in #78, creating a new issue for this.
If the repoPath configuration string is an absolute path, don't prepend DokuWiki's savedir to it.
One way this could be achieved is by changing:
to:
I have tested the above change and it works with both absolute and relative paths. I'm submitting this as an issue instead of as a pull request because I've never written PHP before and I'm not familiar with the dokuwiki or gitbacked plugin codebases.
The text was updated successfully, but these errors were encountered: