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
|
{ 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";
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
|
'');
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue