From a7aeefc3678080cbc746d39a90729e810b39eb32 Mon Sep 17 00:00:00 2001 From: Frank Ronny Larsen Date: Mon, 8 Jul 2013 17:02:05 +0200 Subject: [PATCH] OPPG-414: Removed just in case-code. --- h5p.classes.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/h5p.classes.php b/h5p.classes.php index 716686c..1636259 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -845,14 +845,9 @@ class H5PStorage { $library['saveDependencies'] = FALSE; continue; } - // If we're not allowed to save, we should not be here at all. But just - // in case, we check again. - if (! $this->h5pF->isAllowedLibraryUpdate($library)) { - continue; - } $this->h5pF->saveLibraryData($library, $new); - + $current_path = $this->h5pF->getUploadedH5pFolderPath() . DIRECTORY_SEPARATOR . $key; $destination_path = $this->h5pF->getH5pPath() . DIRECTORY_SEPARATOR . 'libraries' . DIRECTORY_SEPARATOR . $this->h5pC->libraryToString($library, TRUE); $this->h5pC->delTree($destination_path);