Plugin system update

This commit is contained in:
bergware
2022-07-25 09:13:33 +02:00
parent b45b3a41f0
commit d20ad4ff8c
4 changed files with 8 additions and 4 deletions

View File

@@ -54,7 +54,8 @@ function error_desc($code) {
// Signal DONE to caller
//
function done() {
write('_DONE_');
global $console;
if (!$console) write('_DONE_');
exit(0);
}

View File

@@ -18,7 +18,8 @@ $console = $argv[$argc-1] != 'nchan'; // console or nchan output
$call = ['plg' => 'plugin', 'xml' => 'language', '' => 'language'];
function done() {
write('_DONE_');
global $console;
if (!$console) write('_DONE_');
exit(0);
}
function write($message){

View File

@@ -165,7 +165,8 @@ function error_desc($code) {
// Signal DONE to caller
//
function done() {
write('_DONE_');
global $console;
if (!$console) write('_DONE_');
exit(0);
}

View File

@@ -22,7 +22,8 @@ $console = $argv[$argc-1] != 'nchan'; // console or nchan output
if (!$console) unset($argv[$argc-1]); // remove nchan parameter
function done() {
write('_DONE_');
global $console;
if (!$console) write('_DONE_');
exit(0);
}
function write($message) {