diff options
author | zotlabs <mike@macgirvin.com> | 2016-10-31 18:54:04 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2016-10-31 18:54:04 -0700 |
commit | 4ebd604ca99cbeb11b695eee0a3387972fde88bb (patch) | |
tree | a45a237059c18caeebd449e78e7bc29a23d8de79 | |
parent | 581ef6e18d65804daf40d2c516b031801662eacd (diff) | |
download | volse-hubzilla-4ebd604ca99cbeb11b695eee0a3387972fde88bb.tar.gz volse-hubzilla-4ebd604ca99cbeb11b695eee0a3387972fde88bb.tar.bz2 volse-hubzilla-4ebd604ca99cbeb11b695eee0a3387972fde88bb.zip |
provide plugin restrictions based on config settings
-rwxr-xr-x | include/plugin.php | 7 |
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; } |