diff options
author | Mario <mario@mariovavti.com> | 2023-01-05 11:06:19 +0100 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2023-01-05 11:06:19 +0100 |
commit | c95ef1a5c0c4a144f016cfc66faae17a853f78e7 (patch) | |
tree | 9d3a3c1827ef63d71b7f4e0d56f67e1595de4a25 | |
parent | 0c0891f64fd220cdf7b635ce63a01f4d67c4b053 (diff) | |
download | volse-hubzilla-c95ef1a5c0c4a144f016cfc66faae17a853f78e7.tar.gz volse-hubzilla-c95ef1a5c0c4a144f016cfc66faae17a853f78e7.tar.bz2 volse-hubzilla-c95ef1a5c0c4a144f016cfc66faae17a853f78e7.zip |
pdledit_gui: only show installed modules and widgets
-rw-r--r-- | Zotlabs/Module/Pdledit_gui.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Zotlabs/Module/Pdledit_gui.php b/Zotlabs/Module/Pdledit_gui.php index dadb3296e..45a06c00a 100644 --- a/Zotlabs/Module/Pdledit_gui.php +++ b/Zotlabs/Module/Pdledit_gui.php @@ -6,6 +6,7 @@ use App; use Zotlabs\Web\Controller; use Zotlabs\Render\Comanche; use Zotlabs\Lib\Libsync; +use Zotlabs\Lib\Apps; class Pdledit_gui extends Controller { @@ -241,6 +242,10 @@ class Pdledit_gui extends Controller { $addons = plugins_installed_list(); if ($addons) { foreach ($addons as $name) { + if (!Apps::addon_app_installed(local_channel(), $name)) { + continue; + } + $path = 'addon/' . $name . '/mod_' . $name . '.pdl'; if (file_exists($path)) { $arr[] = $name; @@ -270,8 +275,11 @@ class Pdledit_gui extends Controller { if ($addons) { foreach ($addons as $name) { - $path = 'addon/' . $name . '/Widget'; + if (!Apps::addon_app_installed(local_channel(), $name)) { + continue; + } + $path = 'addon/' . $name . '/Widget'; if (is_dir($path)) { $checkpaths[] = $path . '/*.php'; } |