mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-13 18:37:07 +00:00
Merge "Cast 'discussiontools-betaenable' preference to bool"
This commit is contained in:
commit
38c38b8201
|
@ -85,7 +85,7 @@ class HookUtils {
|
|||
// betaenable doesn't have a default value, so we can check
|
||||
// for it being unset like this. If the user has explicitly
|
||||
// enabled or disabled it, we should immediately return that.
|
||||
return $betaenabled;
|
||||
return (bool)$betaenabled;
|
||||
}
|
||||
// Otherwise, being in the "test" group for this feature means
|
||||
// it's effectively beta-enabled.
|
||||
|
|
Loading…
Reference in a new issue