Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pkpps
hostedBy
Commits
29bf2d42
Commit
29bf2d42
authored
Feb 23, 2021
by
Michael Felczak
Browse files
Merge fix getEnabled method to prevent warning in logs
parents
5c48342a
d0e5e13d
Changes
1
Hide whitespace changes
Inline
Side-by-side
HostedByBlockPlugin.inc.php
View file @
29bf2d42
...
...
@@ -22,7 +22,7 @@ class HostedByBlockPlugin extends BlockPlugin {
* Determine whether the plugin is enabled. Overrides parent so that
* the plugin will be displayed during install.
*/
function
getEnabled
()
{
function
getEnabled
(
$contextId
=
null
)
{
if
(
!
Config
::
getVar
(
'general'
,
'installed'
))
return
true
;
return
parent
::
getEnabled
();
}
...
...
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