Commit 2af94bee authored by Penny Leach's avatar Penny Leach
Browse files

check_upgrades for plugins now calls a sanity check

parent 812c1e21
......@@ -98,6 +98,17 @@ function check_upgrades($name=null) {
if (!is_dir(get_config('docroot') . $plugin . '/' . $dir)) {
continue;
}
safe_require($plugin, $dir);
$funname = $plugin . '_check_plugin_sanity';
if (function_exists($funname)) {
try {
$funname($dir);
}
catch (Exception $e) {
log_warn("Plugin $plugin $dir is not installable: " . $e->GetMessage());
continue;
}
}
$plugins[] = array($plugin, $dir);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment