Commit 8afc4275 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Store.php: for phpunit tests take cwd as base directory.

parent eee65781
......@@ -192,6 +192,10 @@ class Store {
$config[SYSTEM_PATH_EXT] = substr($_SERVER['SCRIPT_FILENAME'], 0, $pos + strlen($relExtDir));
$config[SYSTEM_SITE_PATH] = substr($_SERVER['SCRIPT_FILENAME'], 0, $pos);
}
} else {
// No $_SERVER >>this means phpUnit.
$config[SYSTEM_SITE_PATH] = getcwd();
$config[SYSTEM_PATH_EXT] = getcwd();
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment