Skip to content

Commit

Permalink
Revert "fix: cfg branch not found"
Browse files Browse the repository at this point in the history
This reverts commit 79aa46c.
  • Loading branch information
jguillen-at-wiris committed Oct 5, 2023
1 parent 79aa46c commit 26d2af7
Show file tree
Hide file tree
Showing 2 changed files with 669 additions and 570 deletions.
15 changes: 8 additions & 7 deletions classes/pluginwrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,14 @@ public static function get_wiris_plugin() {
if (!in_array('atto', $editors)) {
$editors[] = 'atto';
}

if (!in_array('tinymce', $editors)) {
$editors[] = 'tinymce';
}

if (!in_array('tiny', $editors)) {
$editors[] = 'tiny';
if ($CFG->branch < 402) {
if (!in_array('tinymce', $editors)) {
$editors[] = 'tinymce';
}
} else {
if (!in_array('tiny', $editors)) {
$editors[] = 'tiny';
}
}

foreach ($editors as $editor) {
Expand Down
Loading

0 comments on commit 26d2af7

Please sign in to comment.