r54848 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r54847‎ | r54848 | r54849 >
Date:13:10, 12 August 2009
Author:siebrand
Status:deferred (Comments)
Tags:
Comment:
Fix syntax error from r54847
Modified paths:
  • /trunk/extensions/ParserFunctions/ParserFunctions.i18n.magic.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ParserFunctions/ParserFunctions.i18n.magic.php
@@ -5,6 +5,7 @@
66 /**
77 * English
88 */
 9+$magicWords['en'] = array(
910 'expr' => array( 0, 'expr' ),
1011 'if' => array( 0, 'if' ),
1112 'ifeq' => array( 0, 'ifeq' ),

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r54847* new style magic words support for ParserFunctions...siebrand13:08, 12 August 2009

Comments

#Comment by Jlerner (talk | contribs)   19:42, 12 August 2009

Using MediaWiki 1.15.1, I'm getting the following error using r54848 (no error in r54846):

Magic word 'if' not found Backtrace:

  1. 0 /vol/www/mediawiki-1.15.1/includes/MagicWord.php(244): Language->getMagic(Object(MagicWord))
  2. 1 /vol/www/mediawiki-1.15.1/includes/MagicWord.php(197): MagicWord->load('if')
  3. 2 /vol/www/mediawiki-1.15.1/includes/parser/Parser.php(4034): MagicWord::get('if')
  4. 3 /vol/www/mediawiki-1.15.1/extensions/ParserFunctions/ParserFunctions.php(80): Parser->setFunctionHook('if', Array, 2)

...etc...

#Comment by Siebrand (talk | contribs)   22:30, 12 August 2009

That is correct. This functionality was added in 1.16 alpha. For MediaWiki 1.15.x you should use the version from the 1.15 branch. It can be downloaded through Special:ExtensionDistributor

#Comment by Jlerner (talk | contribs)   23:37, 12 August 2009

Status & tagging log