pass type to error

darcs-hash:20080718202124-84dde-42b9c1d73c51c9bb98cb3896bb03716067762c48.gz
This commit is contained in:
Evan Prodromou 2008-07-18 16:21:24 -04:00
parent 1f8040ce2f
commit c31d6e7fb1

View File

@ -137,14 +137,14 @@ class MailerDaemon {
} else if ($type == 'text/plain') {
$msg = $parsed->body;
} else {
$this->unsupported_type($parsed);
$this->unsupported_type($type);
}
return array($from, $to, $msg);
}
function unsupported_type($parsed) {
$this->error(NULL, "Unsupported message type: " . $parsed->ctype_primary . "/" . $parsed->ctype_secondary ."\n");
function unsupported_type($type) {
$this->error(NULL, "Unsupported message type: " . $type);
}
}