aboutsummaryrefslogtreecommitdiffstats
path: root/include/plugin.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-10-31 18:54:04 -0700
committerzotlabs <mike@macgirvin.com>2016-10-31 18:54:04 -0700
commit4ebd604ca99cbeb11b695eee0a3387972fde88bb (patch)
treea45a237059c18caeebd449e78e7bc29a23d8de79 /include/plugin.php
parent581ef6e18d65804daf40d2c516b031801662eacd (diff)
downloadvolse-hubzilla-4ebd604ca99cbeb11b695eee0a3387972fde88bb.tar.gz
volse-hubzilla-4ebd604ca99cbeb11b695eee0a3387972fde88bb.tar.bz2
volse-hubzilla-4ebd604ca99cbeb11b695eee0a3387972fde88bb.zip
provide plugin restrictions based on config settings
Diffstat (limited to 'include/plugin.php')
-rwxr-xr-xinclude/plugin.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/plugin.php b/include/plugin.php
index e4a854c18..80c303b42 100755
--- a/include/plugin.php
+++ b/include/plugin.php
@@ -427,6 +427,13 @@ function check_plugin_versions($info) {
$test = trim($test);
if(! $test)
continue;
+ if(strpos($test,'.')) {
+ $conf = explode('.',$test);
+ if(get_config(trim($conf[0]),trim($conf[1])))
+ return true;
+ else
+ return false;
+ }
if(! in_array($test,App::$plugins))
$found = false;
}