]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/mailhandler.php
Merge branch 'master' into testing
[quix0rs-gnu-social.git] / lib / mailhandler.php
index 32a8cd9bc5ab34f5de04fef9071fe49b5f3d161f..890f6d5b49fea9decfaf8476b0c3dbe5e28cb70c 100644 (file)
@@ -139,7 +139,7 @@ class MailHandler
 
         $headers['From'] = $to;
         $headers['To'] = $from;
-        $headers['Subject'] = "Command complete";
+        $headers['Subject'] = _('Command complete');
 
         return mail_send(array($from), $headers, $response);
     }
@@ -160,7 +160,7 @@ class MailHandler
         foreach($mediafiles as $mf){
             $mf->attachToNotice($notice);
         }
-        common_broadcast_notice($notice);
+
         $this->log(LOG_INFO,
                    'Added notice ' . $notice->id . ' from user ' . $user->nickname);
         return true;
@@ -225,7 +225,7 @@ class MailHandler
 
     function unsupported_type($type)
     {
-        $this->error(null, "Unsupported message type: " . $type);
+        $this->error(null, sprintf(_('Unsupported message type: %s'), $type));
     }
 
     function cleanup_msg($msg)