summaryrefslogtreecommitdiff
path: root/demos/blog
diff options
context:
space:
mode:
authorxue <>2006-07-13 16:22:34 +0000
committerxue <>2006-07-13 16:22:34 +0000
commit873b2586d6d4ccb8416cd5aac132d992656c1ef5 (patch)
tree81a2600e6deafac9efe956c2432770443a910809 /demos/blog
parentfcc4b6ed2ed082ed83611b7d65f4881a62a580e6 (diff)
updated page doc and added searching title for blogs.
Diffstat (limited to 'demos/blog')
-rw-r--r--demos/blog/protected/Pages/SearchPost.php2
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;
}