mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-27 08:50:33 +00:00
Use short array destructuring instead of list()
Introduced in PHP 7.1. Because it's shorter and looks nice. Change-Id: I68273c79e8d15ef7b69e2642087e425d8bf0dfa6
This commit is contained in:
parent
29dfa3633c
commit
4874172242
|
@ -241,7 +241,7 @@ class PopupsContext {
|
|||
|
||||
if ( $title->isSpecialPage() ) {
|
||||
// it's special page, translate it to canonical name
|
||||
list( $name, $subpage ) = MediaWikiServices::getInstance()->getSpecialPageFactory()
|
||||
[ $name, $subpage ] = MediaWikiServices::getInstance()->getSpecialPageFactory()
|
||||
->resolveAlias( $canonicalTitle->getText() );
|
||||
|
||||
if ( $name !== null ) {
|
||||
|
|
Loading…
Reference in a new issue