Suppress showing unsupported addons in the administration.

This commit is contained in:
Michael Vogel 2014-04-29 14:22:37 +02:00
parent 4ca857e110
commit 7b7e372fb0
2 changed files with 37 additions and 25 deletions

View file

@ -197,14 +197,14 @@ function plugin_is_app($name) {
return true;
}
}
return false;
}}
/*
* parse plugin comment in search of plugin infos.
* like
*
*
* * Name: Plugin
* * Description: A plugin which plugs in
* * Version: 1.2.3
@ -222,7 +222,8 @@ function get_plugin_info($plugin){
'name' => $plugin,
'description' => "",
'author' => array(),
'version' => ""
'version' => "",
'status' => ""
);
if (!is_file("addon/$plugin/$plugin.php")) return $info;