r93026 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93025‎ | r93026 | r93027 >
Date:23:12, 24 July 2011
Author:reedy
Status:deferred
Tags:
Comment:
Add documentation

Fix whitespace
Modified paths:
  • /trunk/extensions/Widgets/Widgets.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Widgets/Widgets.php
@@ -74,10 +74,14 @@
7575 $wgHooks['ParserFirstCallInit'][] = 'widgetParserFunctions';
7676 $wgHooks['ParserAfterTidy'][] = 'processEncodedWidgetOutput';
7777
 78+/**
 79+ * @param $parser Parser
 80+ * @return bool
 81+ */
7882 function widgetParserFunctions( &$parser ) {
79 - $parser->setFunctionHook( 'widget', array( 'WidgetRenderer', 'renderWidget' ) );
 83+ $parser->setFunctionHook( 'widget', array( 'WidgetRenderer', 'renderWidget' ) );
8084
81 - return true;
 85+ return true;
8286 }
8387
8488 function processEncodedWidgetOutput( &$out, &$text ) {

Status & tagging log