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 @@
130 130 // there's no point in doing that because we have to call
131 131 // clearCache() in any case
132 132 if ( !$wgUser->isAnon() && $stats->user_id ) {
133 (削除) - $ctg = $userBlogCat . ' '. $stats->user_name; (削除ここまで)
133 (追記) + $ctg = $userBlogCat . ' ' . $stats->user_name; (追記ここまで)
134 134 $parser = new Parser();
135 135 $ctgTitle = Title::newFromText(
136 136 $parser->preprocess(
137 137 trim( $ctg ),
138 (追記) + $wgOut->getTitle(), (追記ここまで)
138 139 $wgOut->parserOptions()
139 140 )
140 141 );

Status & tagging log

  • 01:28, 13 June 2012 Krinkle (talk | contribs) changed the tags for r102094 [removed: nodeploy]
  • 14:09, 26 January 2012 😂 (talk | contribs) changed the status of r102094 [removed: new added: ok]
  • 00:29, 18 January 2012 Siebrand (talk | contribs) changed the tags for r102094 [added: nodeploy]
  • 14:24, 15 January 2012 Jack Phoenix (talk | contribs) changed the status of r102094 [removed: deferred added: new]
  • 13:53, 13 November 2011 Reedy (talk | contribs) changed the status of r102094 [removed: new added: deferred]

AltStyle によって変換されたページ (->オリジナル) /