diff --git a/Flexible Learning/CHANGEDB.php b/Flexible Learning/CHANGEDB.php index 474321b..1573814 100755 --- a/Flexible Learning/CHANGEDB.php +++ b/Flexible Learning/CHANGEDB.php @@ -297,3 +297,8 @@ $sql[$count][0] = '1.4.00'; $sql[$count][1] = ""; +//v1.4.01 +++$count; +$sql[$count][0] = '1.4.01'; +$sql[$count][1] = ""; + diff --git a/Flexible Learning/CHANGELOG.txt b/Flexible Learning/CHANGELOG.txt index dda14aa..7f70976 100755 --- a/Flexible Learning/CHANGELOG.txt +++ b/Flexible Learning/CHANGELOG.txt @@ -1,6 +1,10 @@ CHANGELOG ========= +v1.4.01 +------- +Added file cleanup feature after a record is deleted + v1.4.00 ------- Added comprehensive file upload tracking system to monitor and manage all file uploads across the system diff --git a/Flexible Learning/manifest.php b/Flexible Learning/manifest.php index d4b8e0d..c8e6787 100755 --- a/Flexible Learning/manifest.php +++ b/Flexible Learning/manifest.php @@ -27,7 +27,7 @@ $entryURL = "units_browse.php"; $type = "Additional"; $category = 'Learn'; -$version = '1.4.00'; +$version = '1.4.01'; $author = "Gibbon Foundation"; $url = "https://gibbonedu.org"; diff --git a/Flexible Learning/units_manage_deleteProcess.php b/Flexible Learning/units_manage_deleteProcess.php index a907a94..2a7a268 100755 --- a/Flexible Learning/units_manage_deleteProcess.php +++ b/Flexible Learning/units_manage_deleteProcess.php @@ -19,6 +19,7 @@ along with this program. If not, see . */ +use Gibbon\Contracts\Filesystem\FileHandler; use Gibbon\Module\FlexibleLearning\Domain\UnitGateway; use Gibbon\Module\FlexibleLearning\Domain\UnitBlockGateway; @@ -61,6 +62,8 @@ $unitBlockGateway->deleteWhere(['flexibleLearningUnitID' => $flexibleLearningUnitID]); $deleted = $unitGateway->delete($flexibleLearningUnitID); + $fileDeleted = $container->get(FileHandler::class)->deleteFile('flexibleLearningUnit', $flexibleLearningUnitID, 'logo'); + $URL .= !$deleted ? '&return=error2' : '&return=success0'; diff --git a/Flexible Learning/version.php b/Flexible Learning/version.php index 6626e1b..7871990 100755 --- a/Flexible Learning/version.php +++ b/Flexible Learning/version.php @@ -22,5 +22,5 @@ /** * Sets version information */ -$moduleVersion = '1.4.00'; +$moduleVersion = '1.4.01'; $coreVersion = '31.0.00';