Skip to content

Commit

Permalink
fixed a bug that occured when presets directory contained a directory
Browse files Browse the repository at this point in the history
  • Loading branch information
justinhunt committed Dec 5, 2018
1 parent df10e6d commit 7886d74
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
Change List
=========
Version 1.4.06(Build 2018120500)
-Fixed bug when presets dir contained a directory.

Version 1.4.05(Build 2018102500)
- fixed popup recorder template
Expand Down
2 changes: 1 addition & 1 deletion classes/presets_control.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public static function fetch_presets(){
}
foreach($dirs as $dir) {
foreach ($dir as $fileinfo) {
if (!$fileinfo->isDot()) {
if (!$fileinfo->isDot() && !$fileinfo->isDir()) {
$preset = self::parse_preset_template($fileinfo);
if ($preset) {
$ret[] = $preset;
Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2018102500; // The current plugin version (Date: YYYYMMDDXX)
$plugin->version = 2018120500; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2011070100; // Requires this Moodle version
$plugin->component = 'filter_generico'; // Full name of the plugin (used for diagnostics)
$plugin->maturity = MATURITY_STABLE;
$plugin->release = 'Version 1.4.05(Build 2018102500)';
$plugin->release = 'Version 1.4.06(Build 2018120500)';

0 comments on commit 7886d74

Please sign in to comment.