diff --git a/ttrss/mk-normalize-headers.nix b/ttrss/mk-normalize-headers.nix index b9852e5..81d3f20 100644 --- a/ttrss/mk-normalize-headers.nix +++ b/ttrss/mk-normalize-headers.nix @@ -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"; } diff --git a/ttrss/normalize-headers.nix b/ttrss/normalize-headers.nix index ca5e449..c6fe112 100644 --- a/ttrss/normalize-headers.nix +++ b/ttrss/normalize-headers.nix @@ -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); + ''); }