Trying to install in the latest Moodle 3.11.3 complains that
Incorrect syntax in plugin supported declaration in vflibs
Looking at Moodle source code, the $plugin->supported in version.php must really be 2 integers. Moodle checks it (in lib/classes/plugininfo/base.php) like this:
if (isset($plugin->supported)) {
// Checks for structure of supported.
$isint = (is_int($plugin->supported[0]) && is_int($plugin->supported[1]));
$isrange = ($plugin->supported[0] <= $plugin->supported[1] && count($plugin->supported) == 2);
if (is_array($plugin->supported) && $isint && $isrange) {
$this->pluginsupported = $plugin->supported;
} else {
throw new coding_exception('Incorrect syntax in plugin supported declaration in '."$this->name");
}
}
Trying to install in the latest Moodle 3.11.3 complains that
Looking at Moodle source code, the
$plugin->supported
inversion.php
must really be 2 integers. Moodle checks it (inlib/classes/plugininfo/base.php
) like this:Fix seems to be just to update
version.php
from->