Index: trunk/extensions/SubPageList/RELEASE-NOTES |
— | — | @@ -5,8 +5,9 @@ |
6 | 6 | |
7 | 7 | |
8 | 8 | === Version 0.2 === |
9 | | -2011-01-xx |
| 9 | +2011-01-24 |
10 | 10 | |
| 11 | +* Fixed escaping issue when using the parser function. |
11 | 12 | * Fixed bug in pathstyle and sortby parameters. |
12 | 13 | * Added parameter descriptions. |
13 | 14 | |
Index: trunk/extensions/SubPageList/SubPageList.php |
— | — | @@ -35,7 +35,7 @@ |
36 | 36 | die( '<b>Error:</b> You need to have <a href="http://www.mediawiki.org/wiki/Extension:Validator">Validator</a> installed in order to use <a href="http://www.mediawiki.org/wiki/Extension:SubPageList">SubPageList</a>.<br />' ); |
37 | 37 | } |
38 | 38 | |
39 | | -define( 'SPL_VERSION', '0.2 alpha' ); |
| 39 | +define( 'SPL_VERSION', '0.2' ); |
40 | 40 | |
41 | 41 | $wgExtensionCredits['parserhook'][] = array( |
42 | 42 | 'path' => __FILE__, |
Index: trunk/extensions/SubPageList/SubPageList.class.php |
— | — | @@ -342,6 +342,21 @@ |
343 | 343 | $options = $this->parser->mOptions; |
344 | 344 | $output = $this->parser->parse( $text, $this->parser->mTitle, $options, true, false ); |
345 | 345 | return $output->getText(); |
| 346 | + } |
| 347 | + |
| 348 | + /** |
| 349 | + * Returns the parser function otpions. |
| 350 | + * @see ParserHook::getFunctionOptions |
| 351 | + * |
| 352 | + * @since 0.2 |
| 353 | + * |
| 354 | + * @return array |
| 355 | + */ |
| 356 | + protected function getFunctionOptions() { |
| 357 | + return array( |
| 358 | + 'noparse' => true, |
| 359 | + 'isHTML' => true |
| 360 | + ); |
346 | 361 | } |
347 | 362 | |
348 | 363 | } |
\ No newline at end of file |