From 7886d74eda36f0e522de221d3ad21875b2e34df0 Mon Sep 17 00:00:00 2001 From: justinhunt Date: Thu, 6 Dec 2018 00:40:37 +0900 Subject: [PATCH] fixed a bug that occured when presets directory contained a directory --- CHANGES.txt | 2 ++ classes/presets_control.php | 2 +- version.php | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index ec5b0fd..c5a5e49 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -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 diff --git a/classes/presets_control.php b/classes/presets_control.php index cc27c4a..15ab698 100644 --- a/classes/presets_control.php +++ b/classes/presets_control.php @@ -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; diff --git a/version.php b/version.php index 1268199..50fbf9a 100644 --- a/version.php +++ b/version.php @@ -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)';