Skip to content

Commit

Permalink
v5.20.09
Browse files Browse the repository at this point in the history
  • Loading branch information
SKuipers committed Sep 12, 2022
1 parent c3546ab commit 934ee1f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Free Learning/CHANGEDB.php
Original file line number Diff line number Diff line change
Expand Up @@ -2116,3 +2116,8 @@
++$count;
$sql[$count][0] = '5.20.08';
$sql[$count][1] = "";

//v5.20.09
++$count;
$sql[$count][0] = '5.20.09';
$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.20.09
--------
Fixed error exporting units that contain empty blocks

v5.20.08
--------
Fix collaborator list for units with multiple prerequisites
Expand Down
2 changes: 1 addition & 1 deletion Free Learning/manifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
$entryURL = 'units_browse.php';
$type = 'Additional';
$category = 'Learn';
$version = '5.20.08';
$version = '5.20.09';
$author = 'Ross Parker';
$url = 'http://rossparker.org/free-learning';

Expand Down
2 changes: 2 additions & 0 deletions Free Learning/src/UnitExporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ public function addUnitToExport($freeLearningUnitID)
$blocks = $this->unitBlockGateway->selectBlocksByUnit($freeLearningUnitID)->fetchAll();
foreach ($blocks as $index => $block) {
$dom = new DOMDocument();
if (empty($blocks[$index]['contents'])) continue;

@$dom->loadHTML($blocks[$index]['contents']);
foreach ($dom->getElementsByTagName('img') as $node) {
$src = $node->getAttribute('src');
Expand Down
2 changes: 1 addition & 1 deletion Free Learning/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
/**
* Sets version information.
*/
$moduleVersion = '5.20.08';
$moduleVersion = '5.20.09';
$coreVersion = '23.0.00';

0 comments on commit 934ee1f

Please sign in to comment.