1
0
Fork 0

add optional debug for normalize-headers

This commit is contained in:
ibizaman 2022-10-25 21:59:23 -07:00
parent 5af627c196
commit 2f57438489
2 changed files with 8 additions and 4 deletions

View file

@ -3,12 +3,15 @@
{ name
, configDir ? "/etc/php"
, configFile ? "normalize-headers.php"
, debug ? false
}:
rec {
inherit name configDir configFile;
pkg = TtrssPHPNormalizeHeaders {
inherit configDir configFile;
inherit debug;
};
type = "fileset";
}

View file

@ -4,6 +4,8 @@
}:
{ configDir ? "/etc/php"
, configFile ? "normalize-headers.php"
, debug ? false
}:
utils.mkConfigFile {
@ -47,8 +49,7 @@ utils.mkConfigFile {
}
}
# trigger_error(print_r($_SERVER, true), E_USER_WARNING);
'';
'' + (if !debug then "" else ''
trigger_error(print_r($_SERVER, true), E_USER_WARNING);
'');
}