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
Terraform modules
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
Jakob Diel
Stud.IP
Commits
57b7e1aa
Commit
57b7e1aa
authored
11 months ago
by
David Siegfried
Browse files
Options
Downloads
Patches
Plain Diff
prevent php-warnings, cleanup php-doc and remove unused variables, fixes #3928
Closes #3928 Merge request
studip/studip!2783
parent
1afde945
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/controllers/admin/plugin.php
+18
-18
18 additions, 18 deletions
app/controllers/admin/plugin.php
with
18 additions
and
18 deletions
app/controllers/admin/plugin.php
+
18
−
18
View file @
57b7e1aa
...
...
@@ -86,7 +86,7 @@ class Admin_PluginController extends AuthenticatedController
* update information is available, an error message is set in
* this controller and an empty array is returned.
*
* @param array
array of plugin meta data
* @param array
$plugins
array of plugin meta data
*/
private
function
get_update_info
(
$plugins
)
{
...
...
@@ -127,7 +127,6 @@ class Admin_PluginController extends AuthenticatedController
}
$plugin_manager
=
PluginManager
::
getInstance
();
$plugin_filter
=
Request
::
option
(
'plugin_filter'
,
''
);
$plugins
=
$plugin_manager
->
getPluginInfos
(
$this
->
plugin_filter
);
...
...
@@ -200,7 +199,6 @@ class Admin_PluginController extends AuthenticatedController
_
(
'Die Position von Plugin "%s" wurde verändert.'
),
$plugin
[
'name'
]
);
$changed
=
true
;
}
}
}
...
...
@@ -344,7 +342,7 @@ class Admin_PluginController extends AuthenticatedController
/**
* Ask for confirmation from the user before deleting a plugin.
*
* @param int
eger
id of plugin to delete
* @param int
$plugin_id
id of plugin to delete
*/
public
function
ask_delete_action
(
$plugin_id
)
{
...
...
@@ -366,7 +364,7 @@ class Admin_PluginController extends AuthenticatedController
/**
* Completely delete a plugin from the system.
*
* @param int
eger
id of plugin to delete
* @param int
$plugin_id
id of plugin to delete
*/
public
function
delete_action
(
$plugin_id
)
{
...
...
@@ -390,7 +388,7 @@ class Admin_PluginController extends AuthenticatedController
/**
* Download a ZIP file containing the given plugin.
*
* @param int
eger
id of plugin to download
* @param int
$plugin_id
id of plugin to download
*/
public
function
download_action
(
$plugin_id
)
{
...
...
@@ -441,16 +439,16 @@ class Admin_PluginController extends AuthenticatedController
$update_info
=
$this
->
plugin_admin
->
getUpdateInfo
(
$plugins
);
$update
=
$this
->
flash
[
'update'
];
$update_status
=
[];
// update each plugin in turn
foreach
(
$update
as
$id
)
{
if
(
isset
(
$update_info
[
$id
][
'update'
]))
{
try
{
$update_url
=
$update_info
[
$id
][
'
update
'
][
'
url
'
]
;
$this
->
plugin_admin
->
installPluginFromURL
(
$update_url
);
}
catch
(
PluginInstallationException
$ex
)
{
$update_errors
[]
=
sprintf
(
'%s: %s'
,
$plugins
[
$id
][
'name'
],
$ex
->
getMessage
());
if
(
!
empty
(
$update
))
{
// update each plugin in turn
foreach
(
$update
as
$id
)
{
if
(
isset
(
$update_info
[
$id
][
'update'
])
)
{
try
{
$update_url
=
$update_info
[
$id
][
'update'
][
'url'
];
$this
->
plugin_admin
->
installPluginFromURL
(
$
update
_
url
)
;
}
catch
(
PluginInstallationException
$ex
)
{
$update_errors
[]
=
sprintf
(
'%s: %s'
,
$plugins
[
$id
][
'name'
],
$ex
->
getMessage
());
}
}
}
}
...
...
@@ -473,6 +471,8 @@ class Admin_PluginController extends AuthenticatedController
/**
* Show a page describing this plugin's meta data and description,
* if available.
*
* @param int $plugin_id if of plugin to show manifest
*/
public
function
manifest_action
(
$plugin_id
)
{
...
...
@@ -491,7 +491,7 @@ class Admin_PluginController extends AuthenticatedController
/**
* migrate a plugin to top version
*
* @param int
eger
id of plugin to migrate
* @param int
$plugin_id
id of plugin to migrate
*/
public
function
migrate_action
(
$plugin_id
)
{
...
...
@@ -516,7 +516,7 @@ class Admin_PluginController extends AuthenticatedController
* register a plugin in database when it
* already exists in file system
*
* @param int
eger
number of found plugin
* @param int
$number
number of found plugin
*/
public
function
register_action
(
$number
)
{
...
...
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