aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Pdledit_gui.php10
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';
}