]> git.mxchange.org Git - friendica.git/blobdiff - mod/friendica.php
Fix: Ensure that the value is set.
[friendica.git] / mod / friendica.php
index 6c6aa8967e8df1f92437ff754010d25228c6299f..1929150f27beb626ae4baad195798e807b578eb4 100644 (file)
@@ -86,7 +86,7 @@ function friendica_content(App $a)
        $o .= L10n::t('Bug reports and issues: please visit') . ' ' . '<a href="https://github.com/friendica/friendica/issues?state=open">'.L10n::t('the bugtracker at github').'</a>';
        $o .= '</p>' . PHP_EOL;
        $o .= '<p>';
-       $o .= L10n::t('Suggestions, praise, donations, etc. - please email "Info" at Friendica - dot com');
+       $o .= L10n::t('Suggestions, praise, etc. - please email "info" at "friendi - dot - ca');
        $o .= '</p>' . PHP_EOL;
 
        $visible_addons = [];
@@ -100,7 +100,7 @@ function friendica_content(App $a)
        }
 
        if (count($visible_addons)) {
-               $o .= '<p>' . L10n::t('Installed addons/addons/apps:') . '</p>' . PHP_EOL;
+               $o .= '<p>' . L10n::t('Installed addons/apps:') . '</p>' . PHP_EOL;
                $sorted = $visible_addons;
                $s = '';
                sort($sorted);
@@ -112,13 +112,18 @@ function friendica_content(App $a)
                                $s .= $p;
                        }
                }
-               $o .= '<div style="margin-left: 25px; margin-right: 25px;">' . $s . '</div>' . PHP_EOL;
+               $o .= '<div style="margin-left: 25px; margin-right: 25px; margin-bottom: 25px;">' . $s . '</div>' . PHP_EOL;
        } else {
-               $o .= '<p>' . L10n::t('No installed addons/addons/apps') . '</p>' . PHP_EOL;
+               $o .= '<p>' . L10n::t('No installed addons/apps') . '</p>' . PHP_EOL;
        }
 
-       $blocklist = Config::get('system', 'blocklist');
-       if (count($blocklist)) {
+       if (Config::get('system', 'tosdisplay'))
+       {
+               $o .= '<p>'.L10n::t('Read about the <a href="%1$s/tos">Terms of Service</a> of this node.', System::baseurl()).'</p>';
+       }
+
+       $blocklist = Config::get('system', 'blocklist', []);
+       if (!empty($blocklist)) {
                $o .= '<div id="about_blocklist"><p>' . L10n::t('On this server the following remote servers are blocked.') . '</p>' . PHP_EOL;
                $o .= '<table class="table"><thead><tr><th>' . L10n::t('Blocked domain') . '</th><th>' . L10n::t('Reason for the block') . '</th></thead><tbody>' . PHP_EOL;
                foreach ($blocklist as $b) {