mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-30 18:34:40 +00:00
Merge "Simplify if statement logic"
This commit is contained in:
commit
b90936ca87
|
@ -41,8 +41,7 @@ class PopupsHooks {
|
||||||
public static function onBeforePageDisplay( OutputPage &$out, Skin &$skin) {
|
public static function onBeforePageDisplay( OutputPage &$out, Skin &$skin) {
|
||||||
// Enable only if the user has turned it on in Beta Preferences, or BetaFeatures is not installed.
|
// Enable only if the user has turned it on in Beta Preferences, or BetaFeatures is not installed.
|
||||||
// Will only be loaded if PageImages & TextExtracts extensions are installed.
|
// Will only be loaded if PageImages & TextExtracts extensions are installed.
|
||||||
if ( ( ( class_exists( 'BetaFeatures' ) && BetaFeatures::isFeatureEnabled( $skin->getUser(), 'popups' ) )
|
if ( ( !class_exists( 'BetaFeatures' ) || BetaFeatures::isFeatureEnabled( $skin->getUser(), 'popups' ) )
|
||||||
|| !class_exists( 'BetaFeatures' ) )
|
|
||||||
&& class_exists( 'ApiQueryExtracts' )
|
&& class_exists( 'ApiQueryExtracts' )
|
||||||
&& class_exists( 'ApiQueryPageImages' )
|
&& class_exists( 'ApiQueryPageImages' )
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in a new issue