Fixed plugin manager - show correct version for "next" branch

This commit is contained in:
bergware
2020-02-12 08:23:26 +01:00
parent 2abc07403d
commit 7439317937
2 changed files with 3 additions and 2 deletions
@@ -17,7 +17,7 @@ $docroot = $docroot ?? $_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp';
function plugin($method, $arg = '') {
global $docroot;
exec("$docroot/plugins/dynamix.plugin.manager/scripts/plugin ".escapeshellarg($method)." ".escapeshellarg($arg), $output, $retval);
return $retval==0 ? end($output) : false;
return $retval==0 ? implode("\n", $output) : false;
}
function check_plugin($arg, &$ncsi) {