From: friendica Date: Sun, 25 Mar 2012 04:50:04 +0000 (-0700) Subject: bug #329 - compress the plugin list on the friendica info page X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f1cb28774230cb69b9ce8ee5b32e4e2531aa586a;p=friendica.git bug #329 - compress the plugin list on the friendica info page --- diff --git a/mod/friendica.php b/mod/friendica.php index ab92e31ed9..d5dad94484 100755 --- a/mod/friendica.php +++ b/mod/friendica.php @@ -51,15 +51,20 @@ function friendica_content(&$a) { $o .= '

'; if(count($a->plugins)) { - $o .= '

' . t('Installed plugins/addons/apps') . '

'; - $o .= ''; + $o .= '

' . t('Installed plugins/addons/apps:') . '

'; + $sorted = $a->plugins; + $s = ''; + sort($sorted); + foreach($sorted as $p) { + if(strlen($p)) { + if(strlen($s)) $s .= ', '; + $s .= $p; + } + } + $o .= '
' . $s . '
'; } else - $o .= '

' . t('No installed plugins/addons/apps'); + $o .= '

' . t('No installed plugins/addons/apps') . '

'; call_hooks('about_hook', $o);