https://www.mediawiki.org/wiki/Special:Code/MediaWiki/102094

Revision: 102094
Author:   ashley
Date:     2011-11-05 14:00:22 +0000 (Sat, 05 Nov 2011)
Log Message:
-----------
BlogPage: fix bug reported by ProgramCeltic on the extension's talk page -- 
Parser's transformMsg() takes only two arguments (text and ParserOptions), 
whereas preprocess() needs three mandatory params, of which the second is a 
Title.

Modified Paths:
--------------
    trunk/extensions/BlogPage/BlogHooks.php

Modified: trunk/extensions/BlogPage/BlogHooks.php
===================================================================
--- trunk/extensions/BlogPage/BlogHooks.php     2011-11-05 13:36:28 UTC (rev 
102093)
+++ trunk/extensions/BlogPage/BlogHooks.php     2011-11-05 14:00:22 UTC (rev 
102094)
@@ -129,11 +129,12 @@
                                        // there's no point in doing that 
because we have to call
                                        // clearCache() in any case
                                        if ( !$wgUser->isAnon() && 
$stats->user_id ) {
-                                               $ctg = $userBlogCat . ' '. 
$stats->user_name;
+                                               $ctg = $userBlogCat . ' ' . 
$stats->user_name;
                                                $parser = new Parser();
                                                $ctgTitle = Title::newFromText(
                                                        $parser->preprocess(
                                                                trim( $ctg ),
+                                                               
$wgOut->getTitle(),
                                                                
$wgOut->parserOptions()
                                                        )
                                                );


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to