BUGFIX: Use DIRECTORY_SEPARATOR instead of '/'
parent
b21d129d2c
commit
a34d0ea3e7
|
@ -1017,11 +1017,11 @@ class H5PCore {
|
||||||
@mkdir($destination);
|
@mkdir($destination);
|
||||||
while (false !== ($file = readdir($dir))) {
|
while (false !== ($file = readdir($dir))) {
|
||||||
if (($file != '.') && ($file != '..')) {
|
if (($file != '.') && ($file != '..')) {
|
||||||
if (is_dir($source . '/' . $file)) {
|
if (is_dir($source . DIRECTORY_SEPARATOR . $file)) {
|
||||||
$this->copyTree($source . '/' . $file, $destination . '/' . $file);
|
$this->copyTree($source . DIRECTORY_SEPARATOR . $file, $destination . DIRECTORY_SEPARATOR . $file);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
copy($source . '/' . $file,$destination . '/' . $file);
|
copy($source . DIRECTORY_SEPARATOR . $file,$destination . DIRECTORY_SEPARATOR . $file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue