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
3ad36db7
Commit
3ad36db7
authored
Jan 04, 2023
by
Mario
Browse files
pdledit_gui: minor cleanup
parent
e16ea1ae
Pipeline
#562738
passed with stage
in 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Zotlabs/Module/Pdledit_gui.php
View file @
3ad36db7
...
...
@@ -220,6 +220,7 @@ class Pdledit_gui extends Controller {
function
get_modules
()
{
$ret
=
''
;
$arr
=
[];
$files
=
glob
(
'Zotlabs/Module/*.php'
);
if
(
$files
)
{
...
...
@@ -232,7 +233,7 @@ class Pdledit_gui extends Controller {
$x
=
theme_include
(
'mod_'
.
$name
.
'.pdl'
);
if
(
$x
)
{
$
ret
.
=
'<div class="mb-2"><a href="pdledit_gui/'
.
$name
.
'">'
.
$name
.
'</a></div>'
;
$
arr
[]
=
$name
;
}
}
}
...
...
@@ -240,17 +241,21 @@ class Pdledit_gui extends Controller {
$addons
=
plugins_installed_list
();
if
(
$addons
)
{
foreach
(
$addons
as
$name
)
{
$path
=
'addon/'
.
$name
.
'/Mod_'
.
ucfirst
(
$name
)
.
'.php'
;
if
(
!
file_exists
(
$path
))
{
continue
;
$path
=
'addon/'
.
$name
.
'/mod_'
.
$name
.
'.pdl'
;
if
(
file_exists
(
$path
))
{
$arr
[]
=
$name
;
}
$ret
.
=
'<div class="mb-2"><a href="pdledit_gui/'
.
$name
.
'">'
.
$name
.
'</a></div>'
;
}
}
sort
(
$arr
);
foreach
(
$arr
as
$name
)
{
$ret
.
=
'<div class="mb-2"><a href="pdledit_gui/'
.
$name
.
'">'
.
$name
.
'</a></div>'
;
}
return
$ret
;
}
function
get_widgets
(
$module
)
{
...
...
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