dirname('/test.txt') returns '\' on windows whereas on linux we get back '.'
This commit is contained in:
parent
84a8aea410
commit
87521f6c6e
|
@ -103,7 +103,7 @@ class Updater {
|
|||
static public function correctFolder($path, $time) {
|
||||
if ($path !== '' && $path !== '/') {
|
||||
$parent = dirname($path);
|
||||
if ($parent === '.') {
|
||||
if ($parent === '.' || $parent === '\\') {
|
||||
$parent = '';
|
||||
}
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue