Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

relative path wrong behaviour #1

Open
bitozoid opened this issue Mar 7, 2013 · 2 comments
Open

relative path wrong behaviour #1

bitozoid opened this issue Mar 7, 2013 · 2 comments

Comments

@bitozoid
Copy link

bitozoid commented Mar 7, 2013

The parameter accesslog works fine for absolute paths and for filenames only, but does not work for relative paths in the form: mydir/myfile.log.

It makes the io_savefile call dependant on the current working directory, and cwd is different for media and for pages.

@splitbrain
Copy link
Member

relative paths should be resolved relative to the data/meta/ directory

@bitozoid
Copy link
Author

bitozoid commented Mar 8, 2013

If the directory exists relative to the cwd (is_dir($dir)), then it does not get written to meta.

175         $dir = dirname($this->getConf('accesslog'));
176         $log = basename($this->getConf('accesslog'));
177         if($dir == '.' || $dir == '' || !is_dir($dir)){
178             $dir = fullpath($conf['metadir'].'/'.$dir);
179         }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants