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 { name
, configDir ? "/etc/php" , configDir ? "/etc/php"
, configFile ? "normalize-headers.php" , configFile ? "normalize-headers.php"
, debug ? false
}: }:
rec { rec {
inherit name configDir configFile; inherit name configDir configFile;
pkg = TtrssPHPNormalizeHeaders { pkg = TtrssPHPNormalizeHeaders {
inherit configDir configFile; inherit configDir configFile;
inherit debug;
}; };
type = "fileset"; type = "fileset";
} }

View file

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