Commit 30a5da49 authored by Penny Leach's avatar Penny Leach
Browse files

always upgrade installed plugins. fixed a bug in the cron installation

parent ec0f47d0
......@@ -90,9 +90,11 @@ function check_upgrades($name=null) {
if (strpos($dir, '.') === 0) {
continue;
}
/*
if (empty($installing) && $dir != 'internal') {
continue;
}
*/
if (!is_dir(get_config('docroot') . $plugin . '/' . $dir)) {
continue;
}
......@@ -268,7 +270,7 @@ function upgrade_plugin($upgrade) {
if (!empty($upgrade->install)) {
$new = true;
}
else if (!record_exists($table, 'plugin', $pluginname, 'function', $cron->callfunction)) {
else if (!record_exists($table, 'plugin', $pluginname, 'callfunction', $cron->callfunction)) {
$new = true;
}
$cron->plugin = $pluginname;
......
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