Index: trunk/extensions/Widgets/Widgets.php |
— | — | @@ -74,10 +74,14 @@ |
75 | 75 | $wgHooks['ParserFirstCallInit'][] = 'widgetParserFunctions'; |
76 | 76 | $wgHooks['ParserAfterTidy'][] = 'processEncodedWidgetOutput'; |
77 | 77 | |
| 78 | +/** |
| 79 | + * @param $parser Parser |
| 80 | + * @return bool |
| 81 | + */ |
78 | 82 | function widgetParserFunctions( &$parser ) { |
79 | | - $parser->setFunctionHook( 'widget', array( 'WidgetRenderer', 'renderWidget' ) ); |
| 83 | + $parser->setFunctionHook( 'widget', array( 'WidgetRenderer', 'renderWidget' ) ); |
80 | 84 | |
81 | | - return true; |
| 85 | + return true; |
82 | 86 | } |
83 | 87 | |
84 | 88 | function processEncodedWidgetOutput( &$out, &$text ) { |