Merge branch '3.6-rc'
[friendica-addons.git] / notifyall / notifyall.php
index 5ea0db38c614749007d33a81d8254a16713d6642..c49128319f3ce102340e7316bbe514efafd315b4 100644 (file)
@@ -55,11 +55,13 @@ function notifyall_post(&$a) {
 
        $htmlversion = BBCode::convert(stripslashes(str_replace(["\\r", "\\n"], ["", "<br />\n"], $text)));
 
+       $htmlversion = bbcode(stripslashes(str_replace(array("\\r","\\n"), array("","<br />\n"),$text)));
+       
        // if this is a test, send it only to the admin(s)
        // admin_email might be a comma separated list, but we need "a@b','c@d','e@f
        if (intval($_REQUEST['test'])) {
                $email = $a->config['admin_email'];
-               $email = "'" . str_replace([" ",","], ["","','"], $email) . "'";
+               $email = "'" . str_replace(array(" ",","), array("","','"), $email) . "'";
        }
        $sql_extra = ((intval($_REQUEST['test'])) ? sprintf(" AND `email` in ( %s )", $email) : '');
 
@@ -79,7 +81,7 @@ function notifyall_post(&$a) {
                        'messageSubject'       => $subject,
                        'htmlVersion'          => $htmlversion,
                        'textVersion'          => $textversion
-               ]);
+               ));
        }
 
        notice(L10n::t('Emails sent'));