r79460 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r79459‎ | r79460 | r79461 >
Date:00:05, 2 January 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Added alias to hooks parameter of describe
Modified paths:
  • /trunk/extensions/Validator/RELEASE-NOTES (modified) (history)
  • /trunk/extensions/Validator/includes/parserHooks/Validator_Describe.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Validator/RELEASE-NOTES
@@ -5,7 +5,7 @@
66
77
88 === Validator 0.4.3 ===
9 -(201x-xx-xx)
 9+(2011-01-xx)
1010
1111 * Added describe parser hook that enables automatic documentation generation of parser hooks defined via Validator.
1212
Index: trunk/extensions/Validator/includes/parserHooks/Validator_Describe.php
@@ -60,6 +60,7 @@
6161 $params['hooks'] = new ListParameter( 'hooks' );
6262 $params['hooks']->setDefault( array_keys( ParserHook::getRegisteredParserHooks() ) );
6363 $params['hooks']->setDescription( wfMsg( 'validator-describe-par-hooks' ) );
 64+ $params['hooks']->addAliases( 'hook' );
6465
6566 $params['pre'] = new Parameter( 'pre', Parameter::TYPE_BOOLEAN );
6667 $params['pre']->setDefault( 'off' );

Status & tagging log