From 4ebd604ca99cbeb11b695eee0a3387972fde88bb Mon Sep 17 00:00:00 2001 From: zotlabs Date: Mon, 31 Oct 2016 18:54:04 -0700 Subject: provide plugin restrictions based on config settings --- include/plugin.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/plugin.php') 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; } -- cgit v1.2.3