Permalink
Browse files

Fix "find config".

realpath() seems to have many caveats depending on the platform
  • Loading branch information...
ozh committed Nov 3, 2017
1 parent 4cb866a commit 5f04ccd48f3db18c6d5ba037cedc83703e204fe9
Showing with 1 addition and 1 deletion.
  1. +1 −1 includes/YOURLS/Config/Config.php
@@ -23,7 +23,7 @@ class Config {
* @param mixed $config Optional user defined config path
*/
public function __construct($config = false) {
$this->set_root( $this->fix_win32_path(realpath(__DIR__ . '/../../../..')) );
$this->set_root($this->fix_win32_path( dirname(dirname(dirname(__DIR__))) ));
$this->set_config($config);
}

0 comments on commit 5f04ccd

Please sign in to comment.