]> git.mxchange.org Git - friendica.git/blobdiff - mod/wallmessage.php
Uncommon logger levels in Friendica (#5453)
[friendica.git] / mod / wallmessage.php
index cbebdb779cfba4d401e8168e45540d67bad7de33..75aca1f68dad1e1041a74823cebcdb1a7a6ac996 100644 (file)
@@ -46,7 +46,7 @@ function wallmessage_post(App $a) {
        );
 
        if ($r[0]['total'] > $user['cntunkmail']) {
-               notice(sprintf(L10n::t('Number of daily wall messages for %s exceeded. Message failed.', $user['username'])));
+               notice(L10n::t('Number of daily wall messages for %s exceeded. Message failed.', $user['username']));
                return;
        }
 
@@ -109,7 +109,7 @@ function wallmessage_content(App $a) {
        );
 
        if ($r[0]['total'] > $user['cntunkmail']) {
-               notice(sprintf(L10n::t('Number of daily wall messages for %s exceeded. Message failed.', $user['username'])));
+               notice(L10n::t('Number of daily wall messages for %s exceeded. Message failed.', $user['username']));
                return;
        }
 
@@ -128,9 +128,9 @@ function wallmessage_content(App $a) {
        ]);
 
        $tpl = get_markup_template('wallmessage.tpl');
-       $o .= replace_macros($tpl, [
+       $o = replace_macros($tpl, [
                '$header' => L10n::t('Send Private Message'),
-               '$subheader' => sprintf(L10n::t('If you wish for %s to respond, please check that the privacy settings on your site allow private mail from unknown senders.'), $user['username']),
+               '$subheader' => L10n::t('If you wish for %s to respond, please check that the privacy settings on your site allow private mail from unknown senders.', $user['username']),
                '$to' => L10n::t('To:'),
                '$subject' => L10n::t('Subject:'),
                '$recipname' => $user['username'],
@@ -139,7 +139,6 @@ function wallmessage_content(App $a) {
                '$text' => ((x($_REQUEST, 'body')) ? escape_tags(htmlspecialchars($_REQUEST['body'])) : ''),
                '$readonly' => '',
                '$yourmessage' => L10n::t('Your message:'),
-               '$select' => $select,
                '$parent' => '',
                '$upload' => L10n::t('Upload photo'),
                '$insert' => L10n::t('Insert web link'),