- if( $this->mText == false ) {
- # Just update the title
- $lowpri = $db->lowPriorityOption();
- $sql = "UPDATE $lowpri $searchindex SET si_title='" .
- $db->strencode( Title::indexTitle( $this->mNamespace, $this->mTitle ) ) .
- "' WHERE si_page={$this->mId}";
- $db->query( $sql, "SearchUpdate::doUpdate" );
+ if( $this->mText === false ) {
+ $search->updateTitle($this->mId,
+ Title::indexTitle( $this->mNamespace, $this->mTitle ));