mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-27 17:00:37 +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) {
|
||||
// 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.
|
||||
if ( ( ( class_exists( 'BetaFeatures' ) && BetaFeatures::isFeatureEnabled( $skin->getUser(), 'popups' ) )
|
||||
|| !class_exists( 'BetaFeatures' ) )
|
||||
if ( ( !class_exists( 'BetaFeatures' ) || BetaFeatures::isFeatureEnabled( $skin->getUser(), 'popups' ) )
|
||||
&& class_exists( 'ApiQueryExtracts' )
|
||||
&& class_exists( 'ApiQueryPageImages' )
|
||||
) {
|
||||
|
|
Loading…
Reference in a new issue