Permalink
Browse files

Exception - Cannot find config.php - Wrong Directory Bug - Subdirecto…

…ry Install

The YOURLS directory was removed but the dirname() structure was not
changed. Throws exception - Cannot find config.php - in subdirectory
install.
  • Loading branch information...
PopVeKind authored and LeoColomb committed Dec 4, 2017
1 parent 68734d4 commit 19f618d57c58e484e8903aa96d7bbfa6cad4eefe
Showing with 1 addition and 1 deletion.
  1. +1 −1 includes/Config/Config.php
@@ -25,7 +25,7 @@ class Config {
* @param mixed $config Optional user defined config path
*/
public function __construct($config = false) {
$this->set_root($this->fix_win32_path( dirname(dirname(dirname(__DIR__))) ));
$this->set_root( $this->fix_win32_path( dirname( dirname( __DIR__ ) ) ) );
$this->set_config($config);
}

0 comments on commit 19f618d

Please sign in to comment.