parent
bb71ea20a3
commit
e66e6c5d76
|
@ -85,7 +85,9 @@ class H5PDefaultStorage implements \H5PFileStorage {
|
|||
*/
|
||||
public function cloneContent($id, $newId) {
|
||||
$path = $this->path . '/content/';
|
||||
self::copyFileTree($path . $id, $path . $newId);
|
||||
if (file_exists($path . $id)) {
|
||||
self::copyFileTree($path . $id, $path . $newId);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue