From c95ef1a5c0c4a144f016cfc66faae17a853f78e7 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 5 Jan 2023 11:06:19 +0100 Subject: pdledit_gui: only show installed modules and widgets --- Zotlabs/Module/Pdledit_gui.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Zotlabs/Module') 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'; } -- cgit v1.2.3