r80859 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80858‎ | r80859 | r80860 >
Date:15:07, 24 January 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Fixed escaping issue and increment to v0.2
Modified paths:
  • /trunk/extensions/SubPageList/RELEASE-NOTES (modified) (history)
  • /trunk/extensions/SubPageList/SubPageList.class.php (modified) (history)
  • /trunk/extensions/SubPageList/SubPageList.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SubPageList/RELEASE-NOTES
@@ -5,8 +5,9 @@
66
77
88 === Version 0.2 ===
9 -2011-01-xx
 9+2011-01-24
1010
 11+* Fixed escaping issue when using the parser function.
1112 * Fixed bug in pathstyle and sortby parameters.
1213 * Added parameter descriptions.
1314
Index: trunk/extensions/SubPageList/SubPageList.php
@@ -35,7 +35,7 @@
3636 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 />' );
3737 }
3838
39 -define( 'SPL_VERSION', '0.2 alpha' );
 39+define( 'SPL_VERSION', '0.2' );
4040
4141 $wgExtensionCredits['parserhook'][] = array(
4242 'path' => __FILE__,
Index: trunk/extensions/SubPageList/SubPageList.class.php
@@ -342,6 +342,21 @@
343343 $options = $this->parser->mOptions;
344344 $output = $this->parser->parse( $text, $this->parser->mTitle, $options, true, false );
345345 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+ );
346361 }
347362
348363 }
\ No newline at end of file

Status & tagging log