Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Free Learning/CHANGEDB.php
Original file line number Diff line number Diff line change
Expand Up @@ -2469,3 +2469,8 @@
++$count;
$sql[$count][0] = '5.30.00';
$sql[$count][1] = "";

//v5.30.01
++$count;
$sql[$count][0] = '5.30.01';
$sql[$count][1] = "";
4 changes: 4 additions & 0 deletions Free Learning/CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
CHANGELOG
=========
v5.30.01
-------
Added file cleanup feature after a record is deleted

v5.30.00
-------
Added comprehensive file upload tracking system to monitor and manage all file uploads across the system
Expand Down
2 changes: 1 addition & 1 deletion Free Learning/manifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
$entryURL = 'units_browse.php';
$type = 'Additional';
$category = 'Learn';
$version = '5.30.00';
$version = '5.30.01';
$author = "Gibbon Foundation";
$url = "https://gibbonedu.org";

Expand Down
3 changes: 3 additions & 0 deletions Free Learning/units_browse_details_deleteProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
*/

use Gibbon\Http\Url;
use Gibbon\Contracts\Filesystem\FileHandler;
use Gibbon\Domain\System\SettingGateway;

require_once '../../gibbon.php';
Expand Down Expand Up @@ -134,6 +135,8 @@
exit;
}

$fileDeleted = $container->get(FileHandler::class)->deleteFile('freeLearningUnitStudent', $urlParams["freeLearningUnitStudentID"], 'exemplarWorkThumb');

//Success 0
$URLDelete .= '&return=success0';
header("Location: {$URLDelete}");
Expand Down
3 changes: 3 additions & 0 deletions Free Learning/units_manage_deleteProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
*/

use Gibbon\Http\Url;
use Gibbon\Contracts\Filesystem\FileHandler;

require_once '../../gibbon.php';

Expand Down Expand Up @@ -84,6 +85,8 @@
exit();
}

$fileDeleted = $container->get(FileHandler::class)->deleteFile('freeLearningUnit', $freeLearningUnitID, 'logo');

try {
$data = array('freeLearningUnitID' => $freeLearningUnitID);
$sql = 'DELETE FROM freeLearningUnitOutcome WHERE freeLearningUnitID=:freeLearningUnitID';
Expand Down
2 changes: 1 addition & 1 deletion Free Learning/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
/**
* Sets version information.
*/
$moduleVersion = '5.30.00';
$moduleVersion = '5.30.01';
$coreVersion = '31.0.00';