diff options
author | Christian A. Weber | 2023-11-23 16:03:15 +0100 |
---|---|---|
committer | Christian A. Weber | 2023-11-23 16:03:15 +0100 |
commit | 9068da3a13a95748f2c79e9f78d05ede25aca28a (patch) | |
tree | 7dfc80d5fe910c0974b17f201756aa86c097e02a | |
parent | d72f3476b4cd7d64280fbcdb73c8a15e99f66aa5 (diff) | |
download | itools-9068da3a13a95748f2c79e9f78d05ede25aca28a.tar.gz itools-9068da3a13a95748f2c79e9f78d05ede25aca28a.tar.bz2 itools-9068da3a13a95748f2c79e9f78d05ede25aca28a.zip |
fix 'what' debug link generator. Also, -- is dead.
-rw-r--r-- | it_html.class | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/it_html.class b/it_html.class index ea3a896..c072051 100644 --- a/it_html.class +++ b/it_html.class @@ -249,9 +249,9 @@ function body($args) foreach (it::sort((array)$GLOBALS['ULTRADEBUGVARS'] + ['srclines' => 1, 'texts' => 1], "k") as $var => $dummy) { if (EDC($var)) - $toggled_host = preg_replace("/(\.|--)$var(-[^.-]+)?/", "", $_SERVER['HTTP_HOST']); + $toggled_host = preg_replace("/\.$var(-[^.-]+)?/", "", $_SERVER['HTTP_HOST']); else - $toggled_host = preg_replace('/^(\w+(-\w+)*)/', "\$1--$var", $_SERVER['HTTP_HOST']); + $toggled_host = preg_replace('/^(\w+(-\w+)*)/', "\$1.$var", $_SERVER['HTTP_HOST']); $debug_links[] = a(array('href' => U('http://' . $toggled_host . $_SERVER['REQUEST_URI']), 'style' => 'font-weight:' . (EDC($var) ? 'bold' : 'normal') . ';'), $var); } $args[] = div(array('style' => 'position:fixed; bottom:0; z-index:9999; font-family:monospace; background:white'), "Debugvars: " . implode(" ", $debug_links)); |