X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FMaintenance.php;h=e29ffd992b4de2d45f2b0d927561558be790c3b9;hb=db36d1be5a163e0917c17477e6e95f4f320fae8e;hp=b4df328cfc794f804c5a8a32e2202d47f3ec073e;hpb=7636bea2bf3ccc33389a97d968bdda64036f59c0;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/Maintenance.php b/maintenance/Maintenance.php index b4df328cfc..e29ffd992b 100644 --- a/maintenance/Maintenance.php +++ b/maintenance/Maintenance.php @@ -426,7 +426,7 @@ abstract class Maintenance { $this->addOption( 'server', "The protocol and server name to use in URLs, e.g. " . "http://en.wikipedia.org. This is sometimes necessary because " . "server name detection may fail in command line scripts.", false, true ); - $this->addOption( 'profiler', 'Set to "text" or "trace" show profiling output', false, true ); + $this->addOption( 'profiler', 'Set to "text" or "trace" to show profiling output', false, true ); # Save generic options to display them separately in help $this->mGenericParameters = $this->mParams; @@ -1155,8 +1155,7 @@ abstract class Maintenance { $title = $titleObj->getPrefixedDBkey(); $this->output( "$title..." ); # Update searchindex - # TODO: pass the Content object to SearchUpdate, let the search engine decide how to deal with it. - $u = new SearchUpdate( $pageId, $titleObj->getText(), $rev->getContent()->getTextForSearchIndex() ); + $u = new SearchUpdate( $pageId, $titleObj->getText(), $rev->getContent() ); $u->doUpdate(); $this->output( "\n" ); }