summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2022-03-21 15:01:32 +0100
committerUrban Müller2022-03-21 15:02:12 +0100
commitd53b024bb12dcc57fddab168d810a1f8fde4385b (patch)
tree61bf084caeaa2da5bc5fbe89394eb2b7a92b9374
parent7da54466e86cca7f9857f0a9701c95af6c3273a8 (diff)
downloaditools-d53b024bb12dcc57fddab168d810a1f8fde4385b.tar.gz
itools-d53b024bb12dcc57fddab168d810a1f8fde4385b.tar.bz2
itools-d53b024bb12dcc57fddab168d810a1f8fde4385b.zip
allow * in .diffnotice for no error mails
-rw-r--r--it.class4
1 files changed, 2 insertions, 2 deletions
diff --git a/it.class b/it.class
index 5dbcdcd..14585ce 100644
--- a/it.class
+++ b/it.class
@@ -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,