]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Wrap email summary and better subject line
authorEvan Prodromou <evan@status.net>
Wed, 8 Jun 2011 19:23:41 +0000 (15:23 -0400)
committerEvan Prodromou <evan@status.net>
Wed, 8 Jun 2011 19:23:41 +0000 (15:23 -0400)
plugins/EmailSummary/useremailsummaryhandler.php

index fda04f3cff62d16e48abacfe152285492d0788aa..f03e8a1dcdfddca3a50b4f3f5db5d35aab14136c 100644 (file)
@@ -120,7 +120,7 @@ class UserEmailSummaryHandler extends QueueHandler
             $new_top = $notice->_items[0]->id;
         }
 
-        $out = new XMLStringer();
+        $out = new XMLStringer(true);
 
         $out->elementStart('div', array('width' => '100%',
                                         'style' => 'background-color: #ffffff; border: 4px solid #4c609a; padding: 10px;'));
@@ -206,8 +206,13 @@ class UserEmailSummaryHandler extends QueueHandler
 
         // FIXME: do something for people who don't like HTML email
 
+        $subject = sprintf(_m('Your latest updates from %s'), common_config('site', 'name'));
+
         // TRANS: Subject for e-mail.
-        mail_to_user($user, _m('Updates from your network'), $body,
+
+        mail_to_user($user,
+                     $subject,
+                     $body,
                      array('Content-Type' => 'text/html; charset=UTF-8'));
 
         if (empty($ess)) {