r67218 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r67217‎ | r67218 | r67219 >
Date:14:49, 2 June 2010
Author:daniel
Status:deferred
Tags:
Comment:
added magic word i18n file, so the parser function now actually works
Modified paths:
  • /trunk/extensions/DataTransclusion/DataTransclusion.i18n.magic.php (added) (history)
  • /trunk/extensions/DataTransclusion/DataTransclusion.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DataTransclusion/DataTransclusion.i18n.magic.php
@@ -0,0 +1,16 @@
 2+<?php
 3+/**
 4+ * Internationalisation file for extension DataTransclusion.
 5+ *
 6+ * @addtogroup Extensions
 7+ * @author Daniel Kinzler for Wikimedia Deutschland
 8+ * @copyright © 2010 Wikimedia Deutschland (author: Daniel Kinzler)
 9+ * @license GNU General Public Licence 2.0 or later
 10+ */
 11+
 12+$magicWords = array();
 13+
 14+$magicWords['en'] = array(
 15+ 'record' => array( 0, 'record' ),
 16+);
 17+
Index: trunk/extensions/DataTransclusion/DataTransclusion.php
@@ -24,6 +24,7 @@
2525
2626 $dir = dirname(__FILE__) . '/';
2727 $wgExtensionMessagesFiles['DataTransclusion'] = $dir . 'DataTransclusion.i18n.php';
 28+$wgExtensionMessagesFiles['DataTransclusion'] = $dir . 'DataTransclusion.i18n.magic.php';
2829
2930 $wgAutoloadClasses['DataTransclusionRenderer'] = $dir. 'DataTransclusionRenderer.php';
3031 $wgAutoloadClasses['DataTransclusionHandler'] = $dir. 'DataTransclusionHandler.php';
@@ -38,6 +39,6 @@
3940
4041 function efDataTransclusionSetHooks( $parser ) {
4142 $parser->setHook( 'record' , 'DataTransclusionHandler::handleRecordTag' );
42 - $parser->setFunctionHook( 'record' , 'DataTransclusionHandler::handleRecordFunction' ); #FIXME: this doesn't work.
 43+ $parser->setFunctionHook( 'record' , 'DataTransclusionHandler::handleRecordFunction' );
4344 return true;
4445 }

Status & tagging log