mirror of
https://github.com/unraid/webgui.git
synced 2026-01-15 14:09:54 -06:00
Plugin system update
This commit is contained in:
@@ -54,7 +54,8 @@ function error_desc($code) {
|
||||
// Signal DONE to caller
|
||||
//
|
||||
function done() {
|
||||
write('_DONE_');
|
||||
global $console;
|
||||
if (!$console) write('_DONE_');
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -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){
|
||||
|
||||
@@ -165,7 +165,8 @@ function error_desc($code) {
|
||||
// Signal DONE to caller
|
||||
//
|
||||
function done() {
|
||||
write('_DONE_');
|
||||
global $console;
|
||||
if (!$console) write('_DONE_');
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user