r17696 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r17695‎ | r17696 | r17697 >
Date:06:46, 15 November 2006
Author:werdna
Status:old
Tags:
Comment:
wfMsg -> wfMsgForContent for code added in r17609
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -1322,7 +1322,7 @@
13231323 $summary = wfMsgForContent('autosumm-blank');
13241324 } elseif (strlen($oldtext) > 10 * strlen($text) && strlen($text) < 500) { #Removing more than 90% of the article
13251325 global $wgContLang;
1326 - $truncatedtext = $wgContLang->truncate($text, max(0, 200 - strlen(wfMsg('autosumm-replace'))), '...');
 1326+ $truncatedtext = $wgContLang->truncate($text, max(0, 200 - strlen(wfMsgForContent('autosumm-replace'))), '...');
13271327 $summary = wfMsgForContent('autosumm-replace', $truncatedtext);
13281328 }
13291329 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r17609Bloody hell, not another pretend featurewerdna11:08, 13 November 2006