r72347 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r72346‎ | r72347 | r72348 >
Date:03:10, 4 September 2010
Author:nad
Status:deferred
Tags:
Comment:
add comment re wikitext replacement
Modified paths:
  • /trunk/extensions/Livelets/Livelets.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Livelets/Livelets.php
@@ -99,6 +99,7 @@
100100 function onArticleAfterFetchContent( &$article, &$content ) {
101101 global $wgLiveletsMagic;
102102
 103+ # Replace the wikitext with just the content of the requested livelet
103104 foreach( self::examineBraces( $content ) as $brace ) {
104105 if ( $brace['NAME'] == "#$wgLiveletsMagic:" && --$this->request_id < 0 ) {
105106 $len = strlen( $wgLiveletsMagic );

Status & tagging log