summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorChristian Helbling2018-09-21 12:07:06 +0200
committerChristian Helbling2018-09-21 12:11:15 +0200
commitc01effea432fdb553f5399474f719f3b83f6123e (patch)
treec110d3eb59fb0521c266c6fc4e3f684e986ffc42 /it.class
parent709aad4a5ce2c9ee990313536f9dea0872592c5f (diff)
downloaditools-c01effea432fdb553f5399474f719f3b83f6123e.tar.gz
itools-c01effea432fdb553f5399474f719f3b83f6123e.tar.bz2
itools-c01effea432fdb553f5399474f719f3b83f6123e.zip
keep debug parameters set via getopt in subrequests
Diffstat (limited to 'it.class')
-rw-r--r--it.class3
1 files changed, 3 insertions, 0 deletions
diff --git a/it.class b/it.class
index 8402f65..7398bfb 100644
--- a/it.class
+++ b/it.class
@@ -908,6 +908,9 @@ static function getopt($usage, $p = array())
$ultravar = preg_split('/[-=:]/', $ultrad, 2);
$GLOBALS["debug_$ultravar[0]"] = isset($ultravar[1]) ? $ultravar[1] : 1;
}
+
+ # keep debug parameters in subrequests
+ $_SERVER['ULTRAHOSTNAME'] = it::replace(['^\.+' => '', '([^.])\.*$' => '\1.'], $result['debug']) . $_SERVER['ULTRAHOSTNAME'];
}
$GLOBALS['it_stdin']['args'] = $result['args'] ? $result['args'] : array("-");