Simplify PopupsContext::areDependenciesMet

Change-Id: I4d545f27e05451e44945217520fdbea77cfd881a
This commit is contained in:
Thiemo Kreuz 2019-01-16 17:25:01 +01:00 committed by Umherirrender
parent 944153c15f
commit 84ef742bc2

View file

@ -132,14 +132,12 @@ class PopupsContext {
* @return bool
*/
public function areDependenciesMet() {
$areMet = true;
if ( $this->config->get( 'PopupsGateway' ) === 'mwApiPlain' ) {
$areMet = $areMet && $this->extensionRegistry->isLoaded( 'TextExtracts' )
return $this->extensionRegistry->isLoaded( 'TextExtracts' )
&& $this->extensionRegistry->isLoaded( 'PageImages' );
}
return $areMet;
return true;
}
/**