From a97eca0a82ed9a8d81cfaf40f8dce3beeaee6ef2 Mon Sep 17 00:00:00 2001 From: Andreas Walter Date: Thu, 28 Mar 2024 14:34:43 +0100 Subject: [PATCH] simplify code --- filter.php | 30 +++--------------------------- version.php | 2 +- 2 files changed, 4 insertions(+), 28 deletions(-) diff --git a/filter.php b/filter.php index f3b33a7..259eb22 100644 --- a/filter.php +++ b/filter.php @@ -376,32 +376,8 @@ private function apply_js($node) { // Paste the code. - // POI: Version differences. - if ($this->versionmoodle["is_newer_version"]) { - - if ($this->versionjsx["version_number"] >= $this->jxg_to_version_number("1.5.0")) { - - $PAGE->requires->js_init_call($code); - - } else { - - $PAGE->requires->js_init_call($code); - - } - - } else { - - if ($this->versionjsx["version_number"] >= $this->jxg_to_version_number("1.5.0")) { - - $PAGE->requires->js_init_call($code); - - } else { - - $PAGE->requires->js_init_call($code); - - } - - } + // POI: Version differences. Here no differences. + $PAGE->requires->js_init_call($code); } /** @@ -962,7 +938,7 @@ private function get_adminsettings() { } /** - * Converts a version string like 1.5.0 to an integer. + * Converts a version string like 1.2.3 to an integer. * * @param String $versionstring * diff --git a/version.php b/version.php index c8aca8a..dc86b8d 100644 --- a/version.php +++ b/version.php @@ -34,7 +34,7 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2023121802; // The current plugin version (Date: YYYYMMDDXX). +$plugin->version = 2023121803; // The current plugin version (Date: YYYYMMDDXX). $plugin->requires = 2019111800; // Requires this Moodle version. $plugin->supported = [38, 403]; // Moodle versions. $plugin->component = 'filter_jsxgraph'; // Full name of the plugin (used for diagnostics).