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