add optional debug for normalize-headers
This commit is contained in:
parent
5af627c196
commit
2f57438489
2 changed files with 8 additions and 4 deletions
|
@ -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";
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
'');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue