Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Added journal entry title to search indexes.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelchisari authored and The Appleseed Project committed Nov 29, 2010
1 parent f4c4e98 commit d55bc09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/journal/controllers/entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ public function Save ( ) {

// First 200 characters of the text, without formatting.
$text = substr ( strip_tags ( $this->GetSys ( 'Render' )->Format ( $Body ) ), 0, 200 );
// Title, without formatting.
$text .= ' ' . strip_tags ( $Title );

$this->Talk ( 'Search', 'Index', array ( 'text' => $text, 'context' => $context, 'id' => $id ) );

Expand Down

0 comments on commit d55bc09

Please sign in to comment.