r57384 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r57383‎ | r57384 | r57385 >
Date:13:55, 5 October 2009
Author:werdna
Status:deferred
Tags:
Comment:
Use content language, not user language for summary when autocreating talk pages.
Resolves bug 20960.
Modified paths:
  • /trunk/extensions/LiquidThreads/classes/Threads.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LiquidThreads/classes/Threads.php
@@ -51,7 +51,8 @@
5252 if ( ! $talkpage->exists() ) {
5353 try {
5454 wfLoadExtensionMessages( 'LiquidThreads' );
55 - $talkpage->doEdit( "", wfMsg( 'lqt_talkpage_autocreate_summary' ), EDIT_NEW | EDIT_SUPPRESS_RC );
 55+ $talkpage->doEdit( "", wfMsgForContent( 'lqt_talkpage_autocreate_summary' ),
 56+ EDIT_NEW | EDIT_SUPPRESS_RC );
5657 } catch ( DBQueryError $e ) {
5758 // The article already existed by now. No need to do anything.
5859 wfDebug( __METHOD__ . ": Article already existed by the time we tried to create it." );

Follow-up revisions

RevisionCommit summaryAuthorDate
r57398Merge r57384, Use content language, not user language for summary when autocr...werdna20:02, 5 October 2009

Status & tagging log