Skip to content

Commit

Permalink
simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-web committed Mar 28, 2024
1 parent 70a13a2 commit a97eca0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 28 deletions.
30 changes: 3 additions & 27 deletions filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down Expand Up @@ -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
*
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit a97eca0

Please sign in to comment.