r79247 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r79246‎ | r79247 | r79248 >
Date:12:26, 30 December 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Small fix to default parameters list
Modified paths:
  • /trunk/extensions/SubPageList/SubPageList.class.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SubPageList/SubPageList.class.php
@@ -117,7 +117,7 @@
118118 * @return array
119119 */
120120 protected function getDefaultParameters( $type ) {
121 - return array( 'format', 'pathstyle', 'sortby', 'sort' );
 121+ return array( 'page', 'format', 'pathstyle', 'sortby', 'sort' );
122122 }
123123
124124 /**
@@ -331,12 +331,8 @@
332332 * @return string the parsed output
333333 */
334334 protected function parse( $text ) {
335 - wfProfileIn( __METHOD__ );
336 -
337335 $options = $this->parser->mOptions;
338336 $output = $this->parser->parse( $text, $this->parser->mTitle, $options, true, false );
339 - wfProfileOut( __METHOD__ );
340 -
341337 return $output->getText();
342338 }
343339

Status & tagging log