provide plugin restrictions based on config settings
This commit is contained in:
parent
581ef6e18d
commit
4ebd604ca9
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user