diff options
author | xue <> | 2006-07-13 16:22:34 +0000 |
---|---|---|
committer | xue <> | 2006-07-13 16:22:34 +0000 |
commit | 873b2586d6d4ccb8416cd5aac132d992656c1ef5 (patch) | |
tree | 81a2600e6deafac9efe956c2432770443a910809 /demos | |
parent | fcc4b6ed2ed082ed83611b7d65f4881a62a580e6 (diff) |
updated page doc and added searching title for blogs.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/blog/protected/Pages/SearchPost.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/blog/protected/Pages/SearchPost.php b/demos/blog/protected/Pages/SearchPost.php index 53e8401c..a824d257 100644 --- a/demos/blog/protected/Pages/SearchPost.php +++ b/demos/blog/protected/Pages/SearchPost.php @@ -21,7 +21,7 @@ class SearchPost extends BlogPage foreach($keywords as $keyword)
{
if(($keyword=$this->DataAccess->escapeString(trim($keyword)))!=='')
- $filter.=" AND content LIKE '%$keyword%'";
+ $filter.=" AND (content LIKE '%$keyword%' OR title LIKE '%$keyword%')";
}
return $filter;
}
|