Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Stud.IP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan-Hendrik Willms
Stud.IP
Commits
520fbf4f
Commit
520fbf4f
authored
3 months ago
by
Jan-Hendrik Willms
Browse files
Options
Downloads
Patches
Plain Diff
make table of unregistered plugins sortable, fixes #4927
Closes #4927 Merge request
studip/studip!3698
parent
c20978de
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/controllers/admin/plugin.php
+5
-1
5 additions, 1 deletion
app/controllers/admin/plugin.php
app/views/admin/plugin/unregistered.php
+5
-5
5 additions, 5 deletions
app/views/admin/plugin/unregistered.php
lib/classes/PluginAdministration.php
+6
-3
6 additions, 3 deletions
lib/classes/PluginAdministration.php
with
16 additions
and
9 deletions
app/controllers/admin/plugin.php
+
5
−
1
View file @
520fbf4f
...
...
@@ -509,7 +509,11 @@ class Admin_PluginController extends AuthenticatedController
public
function
unregistered_action
()
{
$this
->
unknown_plugins
=
$this
->
plugin_admin
->
scanPluginDirectory
();
$plugins
=
$this
->
plugin_admin
->
scanPluginDirectory
();
usort
(
$plugins
,
function
(
$a
,
$b
)
{
return
$a
[
'pluginname'
]
<=>
$b
[
'pluginname'
];
});
$this
->
unknown_plugins
=
$plugins
;
}
/**
...
...
This diff is collapsed.
Click to expand it.
app/views/admin/plugin/unregistered.php
+
5
−
5
View file @
520fbf4f
...
...
@@ -4,16 +4,16 @@
* @var array $unknown_plugins
*/
?>
<table
class=
"default"
>
<table
class=
"default
sortable-table"
data-sortlist=
"[[0, 0]]
"
>
<caption>
<?=
_
(
'Im Pluginverzeichnis vorhandene Plugins registrieren'
)
?>
</caption>
<thead>
<tr>
<th>
<?=
_
(
'Name'
)
?>
</th>
<th>
<?=
_
(
'Pluginklasse'
)
?>
</th>
<th>
<?=
_
(
'Version'
)
?>
</th>
<th>
<?=
_
(
'Ursprung'
)
?>
</th>
<th
data-sort=
"text"
>
<?=
_
(
'Name'
)
?>
</th>
<th
data-sort=
"text"
>
<?=
_
(
'Pluginklasse'
)
?>
</th>
<th
data-sort=
"digit"
>
<?=
_
(
'Version'
)
?>
</th>
<th
data-sort=
"text"
>
<?=
_
(
'Ursprung'
)
?>
</th>
<th>
<?=
_
(
'Registrieren'
)
?>
</th>
</tr>
</thead>
...
...
This diff is collapsed.
Click to expand it.
lib/classes/PluginAdministration.php
+
6
−
3
View file @
520fbf4f
...
...
@@ -405,9 +405,12 @@ class PluginAdministration
$basepath
=
Config
::
get
()
->
PLUGINS_PATH
;
$plugin_manager
=
PluginManager
::
getInstance
();
$iterator
=
new
RegexIterator
(
new
RecursiveIteratorIterator
(
new
RecursiveDirectoryIterator
(
$basepath
,
FilesystemIterator
::
FOLLOW_SYMLINKS
|
FilesystemIterator
::
UNIX_PATHS
)),
'/plugin\.manifest$/'
,
RecursiveRegexIterator
::
MATCH
);
new
RecursiveIteratorIterator
(
new
RecursiveDirectoryIterator
(
$basepath
,
FilesystemIterator
::
FOLLOW_SYMLINKS
|
FilesystemIterator
::
UNIX_PATHS
)
),
'/plugin\.manifest$/'
,
RegexIterator
::
MATCH
);
foreach
(
$iterator
as
$manifest_file
)
{
$manifest
=
$plugin_manager
->
getPluginManifest
(
$manifest_file
->
getPath
());
if
(
!
isset
(
$manifest
[
'pluginclassname'
]))
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment