Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
hubzilla
core
Commits
c95ef1a5
Commit
c95ef1a5
authored
Jan 05, 2023
by
Mario
Browse files
pdledit_gui: only show installed modules and widgets
parent
0c0891f6
Pipeline
#562868
passed with stage
in 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Zotlabs/Module/Pdledit_gui.php
View file @
c95ef1a5
...
...
@@ -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'
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment