]> git.mxchange.org Git - friendica-addons.git/commitdiff
Some useless EOL removed
authorMichael <heluecht@pirati.ca>
Mon, 17 Oct 2022 21:00:03 +0000 (21:00 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 17 Oct 2022 21:00:03 +0000 (21:00 +0000)
forumdirectory/forumdirectory.php
notifyall/notifyall.php
pumpio/pumpio.php
securemail/securemail.php
statusnet/statusnet.php
tumblr/tumblr.php

index b04d3a468ae40481cc69db895e547c4deedaebc1..7dae270aad4cbe074aa0676bf304a8d9c0c8634a 100644 (file)
@@ -63,7 +63,7 @@ function forumdirectory_content(App $a)
        global $forumdirectory_search;
 
        if ((DI::config()->get('system', 'block_public')) && (!local_user()) && (!remote_user())) {
-               DI::sysmsg()->addNotice(DI::l10n()->t('Public access denied.') . EOL);
+               DI::sysmsg()->addNotice(DI::l10n()->t('Public access denied.'));
                return;
        }
 
index 52d75e10c0e5b0d6c5b8850440ca3441d46791c7..270557c4bec24748f72af292d0bf0bd23c21f82e 100644 (file)
@@ -51,7 +51,7 @@ function notifyall_post(App $a)
        $recipients = DBA::p("SELECT DISTINCT `email` FROM `user` WHERE `verified` AND NOT `account_removed` AND NOT `account_expired` $sql_extra");
 
        if (! $recipients) {
-               DI::sysmsg()->addNotice(DI::l10n()->t('No recipients found.') . EOL);
+               DI::sysmsg()->addNotice(DI::l10n()->t('No recipients found.'));
                return;
        }
 
index 4fbc3de54e99f2a358cd45f473b16e6be587fe5a..759b11fdec2fe49fb12febe504e8dee238380e22 100644 (file)
@@ -60,7 +60,7 @@ function pumpio_module() {}
 function pumpio_content(App $a)
 {
        if (!local_user()) {
-               DI::sysmsg()->addNotice(DI::l10n()->t('Permission denied.') . EOL);
+               DI::sysmsg()->addNotice(DI::l10n()->t('Permission denied.'));
                return '';
        }
 
index a8a04df15b12d984851abedb5a92610d3094afab..82c5aec7cf3938404329874ffeb736d03eed65b7 100644 (file)
@@ -90,9 +90,9 @@ function securemail_settings_post(App &$a, array &$b)
                        DI::pConfig()->set(local_user(), 'securemail', 'enable', $enable);
 
                        if ($res) {
-                               DI::sysmsg()->addInfo(DI::l10n()->t('Test email sent') . EOL);
+                               DI::sysmsg()->addInfo(DI::l10n()->t('Test email sent'));
                        } else {
-                               DI::sysmsg()->addNotice(DI::l10n()->t('There was an error sending the test email') . EOL);
+                               DI::sysmsg()->addNotice(DI::l10n()->t('There was an error sending the test email'));
                        }
                }
        }
index 4cf3f77a730eaafd35eac48255a91da5d2eb2689..f82c1aa7f017981a46925a427923d89686daf4bf 100644 (file)
@@ -146,7 +146,7 @@ function statusnet_settings_post(App $a, $post)
                                                DI::pConfig()->set(local_user(), 'statusnet', 'baseapi', $asn['apiurl']);
                                                //DI::pConfig()->set(local_user(), 'statusnet', 'application_name', $asn['applicationname'] );
                                        } else {
-                                               DI::sysmsg()->addNotice(DI::l10n()->t('Please contact your site administrator.<br />The provided API URL is not valid.') . EOL . $asn['apiurl'] . EOL);
+                                               DI::sysmsg()->addNotice(DI::l10n()->t('Please contact your site administrator.<br />The provided API URL is not valid.') . EOL . $asn['apiurl']);
                                        }
                                }
                        }
@@ -174,7 +174,7 @@ function statusnet_settings_post(App $a, $post)
                                                DI::pConfig()->set(local_user(), 'statusnet', 'baseapi', $apibase);
                                        } else {
                                                //  still not the correct API base, let's do noting
-                                               DI::sysmsg()->addNotice(DI::l10n()->t('We could not contact the GNU Social API with the Path you entered.') . EOL);
+                                               DI::sysmsg()->addNotice(DI::l10n()->t('We could not contact the GNU Social API with the Path you entered.'));
                                        }
                                }
                        } else {
index 33cc581f7e86ab8ec033f3342461e9e28df0a847..6a552b7b10ed79d6505ffc59b441177e852c5696 100644 (file)
@@ -39,7 +39,7 @@ function tumblr_module() {}
 function tumblr_content(App $a)
 {
        if (!local_user()) {
-               DI::sysmsg()->addNotice(DI::l10n()->t('Permission denied.') . EOL);
+               DI::sysmsg()->addNotice(DI::l10n()->t('Permission denied.'));
                return '';
        }