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