some backend stuff for apps

This commit is contained in:
friendica
2014-05-15 16:43:42 -07:00
parent 8b233723c5
commit e68bb132a7
4 changed files with 78 additions and 10 deletions

View File

@@ -94,6 +94,17 @@ function load_plugin($plugin) {
}
function plugin_is_installed($name) {
$r = q("select name from addon where name = '%s' and installed = 1 limit 1",
dbesc($name)
);
if($r)
return true;
return false;
}
// reload all updated plugins
function reload_plugins() {