From a34d0ea3e79d7b004e87497824e75f49f4d345f7 Mon Sep 17 00:00:00 2001 From: Frank Ronny Larsen Date: Sun, 30 Jun 2013 15:32:12 +0200 Subject: [PATCH] BUGFIX: Use DIRECTORY_SEPARATOR instead of '/' --- h5p.classes.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/h5p.classes.php b/h5p.classes.php index dd7b011..d05737d 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -354,7 +354,7 @@ class H5PValidator { // Ignore this. Probably a file that shouldn't have been included. continue; } - + $libraryH5PData = $this->getLibraryData($file, $filePath, $tmpDir); if ($libraryH5PData) { @@ -1017,11 +1017,11 @@ class H5PCore { @mkdir($destination); while (false !== ($file = readdir($dir))) { if (($file != '.') && ($file != '..')) { - if (is_dir($source . '/' . $file)) { - $this->copyTree($source . '/' . $file, $destination . '/' . $file); + if (is_dir($source . DIRECTORY_SEPARATOR . $file)) { + $this->copyTree($source . DIRECTORY_SEPARATOR . $file, $destination . DIRECTORY_SEPARATOR . $file); } else { - copy($source . '/' . $file,$destination . '/' . $file); + copy($source . DIRECTORY_SEPARATOR . $file,$destination . DIRECTORY_SEPARATOR . $file); } } }