mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Interwiki
synced 2024-11-23 22:13:37 +00:00
build: Updating mediawiki/mediawiki-phan-config to 0.8.0
Remove array check, because the variable always array at this location Bug: T235049 Change-Id: Ieb1287c1b02715dd69aa83e4485fe090883023ed
This commit is contained in:
parent
4bda0c4dac
commit
b784e7d527
|
@ -4,7 +4,7 @@
|
|||
"mediawiki/mediawiki-codesniffer": "28.0.0",
|
||||
"jakub-onderka/php-console-highlighter": "0.3.2",
|
||||
"mediawiki/minus-x": "0.3.1",
|
||||
"mediawiki/mediawiki-phan-config": "0.6.1"
|
||||
"mediawiki/mediawiki-phan-config": "0.8.0"
|
||||
},
|
||||
"scripts": {
|
||||
"fix": [
|
||||
|
|
|
@ -404,9 +404,7 @@ class SpecialInterwiki extends SpecialPage {
|
|||
|
||||
$this->getOutput()->addWikiMsg( 'interwiki-legend' );
|
||||
|
||||
if ( ( !is_array( $iwPrefixes ) || count( $iwPrefixes ) === 0 ) &&
|
||||
( !is_array( $iwGlobalPrefixes ) || count( $iwGlobalPrefixes ) === 0 )
|
||||
) {
|
||||
if ( $iwPrefixes === [] && $iwGlobalPrefixes === [] ) {
|
||||
// If the interwiki table(s) are empty, display an error message
|
||||
$this->error( 'interwiki_error' );
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue