[AMOS commit] MDL-59562 upgrade: Plugins can declare supported moodle versions Committed into Git: 2019-09-25 05:51 UTC

[AMOS commit] MDL-59562 upgrade: Plugins can declare supported moodle versions Committed into Git: 2019-09-25 05:51 UTC

'mei a AMOS bot - 'aho
Number of replies: 0
Author: [Peter Burnett]
MDL-59562 upgrade: Plugins can declare supported moodle versions
* Plugins can now explicitly declare supported and incompatible Moodle
versions in version.php
- $plugin->supported[37,39];
supported takes an array of ascending numbers, that correspond to a
range of branch numbers of supported versions, inclusive. Moodle
versions that are outside of this range will produce a message
notifying at install time, but will allow for installation.

- $plugin->incompatible = 36;
incompatible takes a single int corresponding to the first incompatible
branch. Any Moodle versions including and below this will be prevented
from installing the plugin, and a message will be given when
attempting installation.


http://git.moodle.org/gw?p=moodle.git;a=commit;h=147a895ad0425bea580c9e544ac49b992cb49590
http://github.com/moodle/moodle/commit/147a895ad0425bea580c9e544ac49b992cb49590

+ 3.9 en [pluginunsupported,core_error]
+ 3.9 en [incompatibleversion,core_plugin]
+ 3.9 en [moodlebranch,core_plugin]
+ 3.9 en [notsupported,core_plugin]