mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-12-18 10:53:01 +00:00
Hooks: Initialise array inline
Change-Id: I13548d37faa7169951c58279c962f6c2f4f87b60
This commit is contained in:
parent
a52c16451a
commit
6dceb40122
|
@ -234,11 +234,11 @@ class Hooks implements
|
|||
/** @inheritDoc */
|
||||
public function onResourceLoaderRegisterModules( ResourceLoader $resourceLoader ): void {
|
||||
$extensionRegistry = ExtensionRegistry::getInstance();
|
||||
$messages = [];
|
||||
|
||||
$messages[] = 'colon-separator';
|
||||
$messages[] = 'captcha-edit';
|
||||
$messages[] = 'captcha-label';
|
||||
$messages = [
|
||||
'colon-separator',
|
||||
'captcha-edit',
|
||||
'captcha-label'
|
||||
];
|
||||
|
||||
if ( $extensionRegistry->isLoaded( 'QuestyCaptcha' ) ) {
|
||||
$messages[] = 'questycaptcha-edit';
|
||||
|
|
Loading…
Reference in a new issue