diff options
author | zottel <github@zottel.net> | 2012-05-01 08:21:12 +0200 |
---|---|---|
committer | zottel <github@zottel.net> | 2012-05-01 08:21:12 +0200 |
commit | 2e2bb5e8b0d2ab4a732cafd2ada30a76c4883177 (patch) | |
tree | 2ca4af49655a3cf4f1a2d2cf4ea7b5936b8d9a17 /mod/friendica.php | |
parent | 43f9ea7cfc77d2dcb5fd6f8d7a90b1511cc67720 (diff) | |
parent | f175af05f92384fab7adb75390a8aa52dc1bd7e1 (diff) | |
download | volse-hubzilla-2e2bb5e8b0d2ab4a732cafd2ada30a76c4883177.tar.gz volse-hubzilla-2e2bb5e8b0d2ab4a732cafd2ada30a76c4883177.tar.bz2 volse-hubzilla-2e2bb5e8b0d2ab4a732cafd2ada30a76c4883177.zip |
Merge remote branch 'upstream/master'
Diffstat (limited to 'mod/friendica.php')
-rw-r--r-- | mod/friendica.php | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/mod/friendica.php b/mod/friendica.php index 52a064224..28807b5b5 100644 --- a/mod/friendica.php +++ b/mod/friendica.php @@ -18,10 +18,18 @@ function friendica_init(&$a) { $admin = false; } + $visible_plugins = array(); + if(is_array($a->plugins) && count($a->plugins)) { + $r = q("select * from addon where hidden = 0"); + if(count($r)) + foreach($r as $rr) + $visible_plugins[] = $rr['name']; + } + $data = Array( 'version' => FRIENDICA_VERSION, 'url' => z_root(), - 'plugins' => $a->plugins, + 'plugins' => $visible_plugins, 'register_policy' => $register_policy[$a->config['register_policy']], 'admin' => $admin, 'site_name' => $a->config['sitename'], @@ -54,9 +62,18 @@ function friendica_content(&$a) { $o .= '<p></p>'; - if(count($a->plugins)) { + $visible_plugins = array(); + if(is_array($a->plugins) && count($a->plugins)) { + $r = q("select * from addon where hidden = 0"); + if(count($r)) + foreach($r as $rr) + $visible_plugins[] = $rr['name']; + } + + + if(count($visible_plugins)) { $o .= '<p>' . t('Installed plugins/addons/apps:') . '</p>'; - $sorted = $a->plugins; + $sorted = $visible_plugins; $s = ''; sort($sorted); foreach($sorted as $p) { |