aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorSimon L'nu <simon.lnu@gmail.com>2012-03-25 00:59:25 -0400
committerSimon L'nu <simon.lnu@gmail.com>2012-03-25 00:59:25 -0400
commit5bd4f62210c9672dd7d502cf8a74ee34727536fc (patch)
tree1c5d43999b433007ff19bd5c591a1c9b3b027e82 /mod
parent8a6c407282fe10f676f08f21e28647a5c8794e11 (diff)
parentf1cb28774230cb69b9ce8ee5b32e4e2531aa586a (diff)
downloadvolse-hubzilla-5bd4f62210c9672dd7d502cf8a74ee34727536fc.tar.gz
volse-hubzilla-5bd4f62210c9672dd7d502cf8a74ee34727536fc.tar.bz2
volse-hubzilla-5bd4f62210c9672dd7d502cf8a74ee34727536fc.zip
Merge branch 'master', remote-tracking branch 'remotes/upstream/master'
* remotes/upstream/master: bug #329 - compress the plugin list on the friendica info page bug #346 - add oembed maxwidth to oembed request * master:
Diffstat (limited to 'mod')
-rwxr-xr-xmod/friendica.php19
1 files changed, 12 insertions, 7 deletions
diff --git a/mod/friendica.php b/mod/friendica.php
index ab92e31ed..d5dad9448 100755
--- a/mod/friendica.php
+++ b/mod/friendica.php
@@ -51,15 +51,20 @@ function friendica_content(&$a) {
$o .= '<p></p>';
if(count($a->plugins)) {
- $o .= '<p>' . t('Installed plugins/addons/apps') . '</p>';
- $o .= '<ul>';
- foreach($a->plugins as $p)
- if(strlen($p))
- $o .= '<li>' . $p . '</li>';
- $o .= '</ul>';
+ $o .= '<p>' . t('Installed plugins/addons/apps:') . '</p>';
+ $sorted = $a->plugins;
+ $s = '';
+ sort($sorted);
+ foreach($sorted as $p) {
+ if(strlen($p)) {
+ if(strlen($s)) $s .= ', ';
+ $s .= $p;
+ }
+ }
+ $o .= '<div style="margin-left: 25px; margin-right: 25px;">' . $s . '</div>';
}
else
- $o .= '<p>' . t('No installed plugins/addons/apps');
+ $o .= '<p>' . t('No installed plugins/addons/apps') . '</p>';
call_hooks('about_hook', $o);