Now there are fewer than 300 updates left ...

This commit is contained in:
Michael 2017-08-10 05:07:23 +00:00
parent bd8efb7f92
commit eb7cbb9ada
2 changed files with 13 additions and 31 deletions

View file

@ -56,9 +56,7 @@ function install_plugin($plugin) {
// This way the system won't fall over dead during the update.
if (file_exists('addon/' . $plugin . '/.hidden')) {
q("UPDATE `addon` SET `hidden` = 1 WHERE `name` = '%s'",
dbesc($plugin)
);
dba::update('addon', array('hidden' => true), array('name' => $plugin));
}
return true;
}
@ -106,10 +104,7 @@ function reload_plugins() {
$func = $pl . '_install';
$func();
}
q("UPDATE `addon` SET `timestamp` = %d WHERE `id` = %d",
intval($t),
intval($i['id'])
);
dba::update('addon', array('timestamp' => $t), array('id' => $i['id']));
}
}
}