aboutsummaryrefslogtreecommitdiffstats
path: root/include/plugin.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-05-15 16:43:42 -0700
committerfriendica <info@friendica.com>2014-05-15 16:43:42 -0700
commite68bb132a701d170ef1e13752a8f64107eac7353 (patch)
tree1e4aa3ca794a3f17d166318805622786f2f68a59 /include/plugin.php
parent8b233723c5a6cbf18de438efa1d832691b0d9cce (diff)
downloadvolse-hubzilla-e68bb132a701d170ef1e13752a8f64107eac7353.tar.gz
volse-hubzilla-e68bb132a701d170ef1e13752a8f64107eac7353.tar.bz2
volse-hubzilla-e68bb132a701d170ef1e13752a8f64107eac7353.zip
some backend stuff for apps
Diffstat (limited to 'include/plugin.php')
-rwxr-xr-xinclude/plugin.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/plugin.php b/include/plugin.php
index 9982a48a2..ace00d43a 100755
--- a/include/plugin.php
+++ b/include/plugin.php
@@ -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() {