Use TEXT_EXTRACTS_INSTALLED instead of checking a class name

Change-Id: I4381ea4f7432f2b1d1e945ffadad49e19f3338b7
This commit is contained in:
Kunal Mehta 2014-12-31 15:39:05 -08:00
parent 4350beabcf
commit 697b57b4b3

View file

@ -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' ) );