MDL-38121 tell admins when plugin installed into wrong dir
This commit is contained in:
@@ -2857,9 +2857,13 @@ class plugininfo_mod extends plugininfo_base {
|
||||
$versionfile = $this->full_path('version.php');
|
||||
|
||||
$module = new stdClass();
|
||||
$plugin = new stdClass();
|
||||
if (is_readable($versionfile)) {
|
||||
include($versionfile);
|
||||
}
|
||||
if (!isset($module->version) and isset($plugin->version)) {
|
||||
$module = $plugin;
|
||||
}
|
||||
return $module;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user