Issue https://www.drupal.org/node/2402099 by drinkdecaf: H5P on Pantheon Environments

namespaces
git 2015-01-09 09:59:29 +01:00 committed by Frode Petterson
parent 35a7f39a0b
commit e7b7cd2abe
1 changed files with 2 additions and 1 deletions

View File

@ -1275,7 +1275,8 @@ class H5PStorage {
} }
$destination_path = $libraries_path . DIRECTORY_SEPARATOR . H5PCore::libraryToString($library, TRUE); $destination_path = $libraries_path . DIRECTORY_SEPARATOR . H5PCore::libraryToString($library, TRUE);
H5PCore::deleteFileTree($destination_path); H5PCore::deleteFileTree($destination_path);
rename($library['uploadDirectory'], $destination_path); $this->h5pC->copyFileTree($library['uploadDirectory'], $destination_path);
H5PCore::deleteFileTree($library['uploadDirectory']);
$library_saved = TRUE; $library_saved = TRUE;
} }