r102094 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r102093‎ | r102094 | r102095 >
Date:14:00, 5 November 2011
Author:ashley
Status:ok
Tags:
Comment:
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) (history)

Diff [purge]

Index: trunk/extensions/BlogPage/BlogHooks.php
@@ -129,11 +129,12 @@
130130 // there's no point in doing that because we have to call
131131 // clearCache() in any case
132132 if ( !$wgUser->isAnon() && $stats->user_id ) {
133 - $ctg = $userBlogCat . ' '. $stats->user_name;
 133+ $ctg = $userBlogCat . ' ' . $stats->user_name;
134134 $parser = new Parser();
135135 $ctgTitle = Title::newFromText(
136136 $parser->preprocess(
137137 trim( $ctg ),
 138+ $wgOut->getTitle(),
138139 $wgOut->parserOptions()
139140 )
140141 );

Status & tagging log