diff options
author | Urban Müller | 2022-03-21 15:01:32 +0100 |
---|---|---|
committer | Urban Müller | 2022-03-21 15:02:12 +0100 |
commit | d53b024bb12dcc57fddab168d810a1f8fde4385b (patch) | |
tree | 61bf084caeaa2da5bc5fbe89394eb2b7a92b9374 | |
parent | 7da54466e86cca7f9857f0a9701c95af6c3273a8 (diff) | |
download | itools-d53b024bb12dcc57fddab168d810a1f8fde4385b.tar.gz itools-d53b024bb12dcc57fddab168d810a1f8fde4385b.tar.bz2 itools-d53b024bb12dcc57fddab168d810a1f8fde4385b.zip |
allow * in .diffnotice for no error mails
-rw-r--r-- | it.class | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -180,12 +180,12 @@ static function error($p = array(), $extra = null) else $url = $_SERVER['SCRIPT_NAME'] . " " . implode(" ", array_slice($GLOBALS['argv'], 1)) . " (pwd " . $_SERVER['PWD'] . ")"; - $gods = strtr(trim(@file_get_contents($GLOBALS['ULTRAHOME'] . "/.diffnotice")), array("\n"=>', ')); # NOPHPLINT + $authors = join(", ", it::grep('\*', (array)@it::cat($GLOBALS['ULTRAHOME'] . "/.diffnotice")->lines, ['invert' => true])); if (!$p['to']) unset($p['to']); # allow defaults to kick in $p += array( 'title' => "it::error", - 'to' => $gods ? $gods : (get_current_user() ? get_current_user() : $_SERVER['SERVER_ADMIN']), + 'to' => $authors ? $authors : (get_current_user() ? get_current_user() : $_SERVER['SERVER_ADMIN']), 'graceperiod' => 60, 'timewindow' => 25*3600, 'backtraceskip' => 1, |