Refactor for consistency
parent
2bd972168e
commit
0125afb440
|
@ -124,7 +124,7 @@ class DefaultStorage implements \H5P\FileStorage {
|
|||
*
|
||||
* @param string $filename
|
||||
*/
|
||||
public function removeExport($filename) {
|
||||
public function deleteExport($filename) {
|
||||
// TODO
|
||||
}
|
||||
|
||||
|
|
|
@ -90,5 +90,5 @@ interface FileStorage {
|
|||
*
|
||||
* @param string $filename
|
||||
*/
|
||||
public function removeExport($filename);
|
||||
public function deleteExport($filename);
|
||||
}
|
||||
|
|
|
@ -1406,7 +1406,7 @@ class H5PStorage {
|
|||
*/
|
||||
public function deletePackage($content) {
|
||||
$this->h5pC->fs->deleteContent($content['id']);
|
||||
$this->h5pC->fs->removeExport(($content['slug'] ? $content['slug'] . '-' : '') . $content['id'] . '.h5p');
|
||||
$this->h5pC->fs->deleteExport(($content['slug'] ? $content['slug'] . '-' : '') . $content['id'] . '.h5p');
|
||||
$this->h5pF->deleteContentData($content['id']);
|
||||
}
|
||||
|
||||
|
@ -1588,7 +1588,7 @@ Class H5PExport {
|
|||
* @param array $content object
|
||||
*/
|
||||
public function deleteExport($content) {
|
||||
$this->h5pC->fs->removeExport(($content['slug'] ? $content['slug'] . '-' : '') . $content['id'] . '.h5p');
|
||||
$this->h5pC->fs->deleteExport(($content['slug'] ? $content['slug'] . '-' : '') . $content['id'] . '.h5p');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1778,7 +1778,7 @@ class H5PCore {
|
|||
$content['slug'] = $this->generateContentSlug($content);
|
||||
|
||||
// Remove old export file
|
||||
$this->fs->removeExport($content['id'] . '.h5p');
|
||||
$this->fs->deleteExport($content['id'] . '.h5p');
|
||||
}
|
||||
|
||||
if ($this->exportEnabled) {
|
||||
|
|
Loading…
Reference in New Issue