http://www.mediawiki.org/wiki/Special:Code/MediaWiki/73910
Revision: 73910
Author: platonides
Date: 2010-09-28 15:39:00 +0000 (Tue, 28 Sep 2010)
Log Message:
-----------
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: trunk/extensions/ArticleComments/ArticleComments.php
===================================================================
--- trunk/extensions/ArticleComments/ArticleComments.php 2010-09-28
15:31:29 UTC (rev 73909)
+++ trunk/extensions/ArticleComments/ArticleComments.php 2010-09-28
15:39:00 UTC (rev 73910)
@@ -2,7 +2,7 @@
/*
* ArticleComments.php - A MediaWiki extension for adding comment sections to
articles.
* @author Jim R. Wilson
- * @version 0.4.3
+ * @version 0.4.4
* @copyright Copyright (C) 2007 Jim R. Wilson
* @license The MIT License -
http://www.opensource.org/licenses/mit-license.php
* -----------------------------------------------------------------------
@@ -89,7 +89,7 @@
global $wgParser;
$wgParser->setHook( 'comments', 'wfArticleCommentsParserHook' );
}
-function wfArticleCommentsParserHook( $text, $params = array(), &$parser ) {
+function wfArticleCommentsParserHook( $text, $params = array(), $parser ) {
# Generate a comment form for display
$commentForm = wfArticleCommentForm( $parser->mTitle, $params );
@@ -502,4 +502,4 @@
return true;
}
-//</source>
\ No newline at end of file
+//</source>
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs