]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
pass type to error
authorEvan Prodromou <evan@prodromou.name>
Fri, 18 Jul 2008 20:21:24 +0000 (16:21 -0400)
committerEvan Prodromou <evan@prodromou.name>
Fri, 18 Jul 2008 20:21:24 +0000 (16:21 -0400)
darcs-hash:20080718202124-84dde-42b9c1d73c51c9bb98cb3896bb03716067762c48.gz

maildaemon.php

index 185f6609c0142b95215cbe4d11b7e51617aa28f0..c48335fea5cf43a1e4dab9a938df1ed7e1ccc580 100755 (executable)
@@ -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);
        }
 }