mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-09-25 11:17:24 +00:00
Use TEXT_EXTRACTS_INSTALLED instead of checking a class name
Change-Id: I4381ea4f7432f2b1d1e945ffadad49e19f3338b7
This commit is contained in:
parent
4350beabcf
commit
697b57b4b3
|
@ -103,7 +103,7 @@ class PopupsHooks {
|
|||
// 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( 'ApiQueryExtracts' )
|
||||
&& defined( 'TEXT_EXTRACTS_INSTALLED' )
|
||||
&& class_exists( 'ApiQueryPageImages' )
|
||||
) {
|
||||
$out->addModules( array( 'ext.popups' ) );
|
||||
|
|
Loading…
Reference in a new issue