From e817bb49883aec980c0ffe827899365f13b1f786 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 24 May 2023 14:11:14 +0200 Subject: more functional style --- it_html.class | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'it_html.class') diff --git a/it_html.class b/it_html.class index 7423513..2700e99 100644 --- a/it_html.class +++ b/it_html.class @@ -249,9 +249,7 @@ function body($args) { if (EDC('what')) { - $debugvars = array_merge($GLOBALS['ULTRADEBUGVARS'], array('srclines' => 1, 'texts' => 1)); - ksort($debugvars); - foreach ($debugvars as $var => $dummy) + 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']); -- cgit v1.2.3