r25119 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25118‎ | r25119 | r25120 >
Date:14:57, 24 August 2007
Author:brion
Status:old
Tags:
Comment:
fix for regression -- removed wrong bit when pruning old code
Modified paths:
  • /trunk/extensions/LuceneSearch/LuceneSearch_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LuceneSearch/LuceneSearch_body.php
@@ -464,8 +464,8 @@
465465 return "<!--Broken link in search results: ".$t->getDBKey()."-->\n";
466466 }
467467
468 - $text = $rev->getContent(false);
469 - $size = wfMsg('searchsize', sprintf("%.1f", strlen($text) / 1024), str_word_count($text));
 468+ $text = $rev->getText();
 469+ $size = wfMsg('searchsize', sprintf("%.1f", strlen($text) / 1024), str_word_count($text));
470470 $text = $this->removeWiki($text);
471471 $date = $wgContLang->timeanddate($rev->getTimestamp());
472472 } else {

Status & tagging log