r81219 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r81218‎ | r81219 | r81220 >
Date:22:25, 30 January 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Follow up to r81218
Modified paths:
  • /trunk/extensions/SubPageList/SubPageList.class.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SubPageList/SubPageList.class.php
@@ -154,7 +154,7 @@
155155 $list = "''" . wfMsg( 'spl-nosubpages', '[[' . $title->getFullText() . ']]' ) . "''\n";
156156 }
157157
158 - return '<div class="subpagelist">' . $this->parse( $list ) . '</div>';
 158+ return '<div class="subpagelist">' . $this->parseWikitext( $list ) . '</div>';
159159 }
160160
161161 /**
@@ -332,19 +332,6 @@
333333 }
334334
335335 /**
336 - * Wrapper function parse, call the other functions.
337 - *
338 - * @param string $text the content
339 - *
340 - * @return string the parsed output
341 - */
342 - protected function parse( $text ) {
343 - $options = $this->parser->mOptions;
344 - $output = $this->parser->parse( $text, $this->parser->mTitle, $options, true, false );
345 - return $output->getText();
346 - }
347 -
348 - /**
349336 * Returns the parser function otpions.
350337 * @see ParserHook::getFunctionOptions
351338 *
@@ -359,4 +346,4 @@
360347 );
361348 }
362349
363 -}
\ No newline at end of file
 350+}

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r81218Do not throw away, make all info available to handle parser functions and ta...jeroendedauw22:25, 30 January 2011

Status & tagging log