r73910 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r73909‎ | r73910 | r73911 >
Date:15:39, 28 September 2010
Author:platonides
Status:deferred
Tags:
Comment:
Fix the parser hooks so it really outputs something in modern mediawiki and php.
Note however that despite trying to, those $wgMessageCache->addMessage() are not being effective.
Modified paths:
  • /trunk/extensions/ArticleComments/ArticleComments.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ArticleComments/ArticleComments.php
@@ -2,7 +2,7 @@
33 /*
44 * ArticleComments.php - A MediaWiki extension for adding comment sections to articles.
55 * @author Jim R. Wilson
6 - * @version 0.4.3
 6+ * @version 0.4.4
77 * @copyright Copyright (C) 2007 Jim R. Wilson
88 * @license The MIT License - http://www.opensource.org/licenses/mit-license.php
99 * -----------------------------------------------------------------------
@@ -89,7 +89,7 @@
9090 global $wgParser;
9191 $wgParser->setHook( 'comments', 'wfArticleCommentsParserHook' );
9292 }
93 -function wfArticleCommentsParserHook( $text, $params = array(), &$parser ) {
 93+function wfArticleCommentsParserHook( $text, $params = array(), $parser ) {
9494
9595 # Generate a comment form for display
9696 $commentForm = wfArticleCommentForm( $parser->mTitle, $params );
@@ -502,4 +502,4 @@
503503 return true;
504504 }
505505
506 -//</source>
\ No newline at end of file
 506+//</source>

Status & tagging log