mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-23 23:24:39 +00:00
Simplify PopupsContext::areDependenciesMet
Change-Id: I4d545f27e05451e44945217520fdbea77cfd881a
This commit is contained in:
parent
944153c15f
commit
84ef742bc2
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue