MDL-49329 admin: Improve the plugin package validator

Previously, the validator was used for installation of the new plugins
only. We now validate every incoming plugin package. As a result, we
must no longer insists on the target location is empty. Instead, warning
is raised.
This commit is contained in:
David Mudrák
2015-10-08 23:32:05 +02:00
parent fd2d146218
commit 8acee4b53d
5 changed files with 54 additions and 31 deletions
+1 -1
View File
@@ -1807,7 +1807,7 @@ class core_plugin_manager {
* @param string $fullpath
* @return boolean
*/
protected function is_directory_removable($fullpath) {
public function is_directory_removable($fullpath) {
if (!is_writable($fullpath)) {
return false;