r81902 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r81901‎ | r81902 | r81903 >
Date:17:08, 10 February 2011
Author:demon
Status:ok
Tags:
Comment:
Finally make this hook work right...I should have had more sleep when I did it
Modified paths:
  • /trunk/extensions/DoubleWiki/DoubleWiki.php (modified) (history)
  • /trunk/extensions/DoubleWiki/DoubleWiki_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DoubleWiki/DoubleWiki_body.php
@@ -45,6 +45,7 @@
4646 static function OutputPageBeforeHTML( &$parserOutput , &$text ) {
4747 $dw = new self();
4848 $dw->addMatchedText( $parserOutput, $text );
 49+ return true;
4950 }
5051
5152 /*
Index: trunk/extensions/DoubleWiki/DoubleWiki.php
@@ -24,7 +24,7 @@
2525
2626 $wgExtensionMessagesFiles['DoubleWiki'] = dirname(__FILE__) . '/DoubleWiki.i18n.php';
2727 $wgAutoloadClasses['DoubleWiki'] = dirname( __FILE__ ) . "/DoubleWiki_body.php";
28 -$wgHooks['OutputPageBeforeHTML'][] = array( 'DoubleWiki', 'OutputPageBeforeHTML' );
 28+$wgHooks['OutputPageBeforeHTML'][] = 'DoubleWiki::OutputPageBeforeHTML';
2929
3030 $wgExtensionCredits['other'][] = array(
3131 'path' => __FILE__,

Status & tagging log