MDL-39148 Non-installed plugins cannot be uninstalled
authorDavid Mudrák <david@moodle.com>
Fri, 19 Apr 2013 09:24:43 +0000 (11:24 +0200)
committerDavid Mudrák <david@moodle.com>
Fri, 19 Apr 2013 09:24:43 +0000 (11:24 +0200)
commitbadf464792bedaed08e39a66464a1b4b22607c82
tree22b89144d2c0f8f43e5c5f3104d1f1cb16994fef
parent3a8c4380c06d632a897714c6251be949dd5cc657
MDL-39148 Non-installed plugins cannot be uninstalled

If the plugin has been only deployed to the disk without installing into
the database, do not allow going through the uninstallation procedure.
Not only it does not have much sense. But it can also lead to some
tricky situation due to dependencies. Better to block it and wait till
the plugin is either fully installed or removed from the disk.
lib/pluginlib.php
lib/tests/fixtures/mockplugins/mod/new/version.php [new file with mode: 0644]
lib/tests/pluginlib_test.php