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 | |
parent | fcc4b6ed2ed082ed83611b7d65f4881a62a580e6 (diff) |
updated page doc and added searching title for blogs.
-rw-r--r-- | demos/blog/protected/Pages/SearchPost.php | 2 | ||||
-rw-r--r-- | framework/Web/UI/TPage.php | 1 |
2 files changed, 2 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;
}
diff --git a/framework/Web/UI/TPage.php b/framework/Web/UI/TPage.php index 804bad43..1fa9330c 100644 --- a/framework/Web/UI/TPage.php +++ b/framework/Web/UI/TPage.php @@ -146,6 +146,7 @@ class TPage extends TTemplateControl /**
* Constructor.
* Sets the page object to itself.
+ * Derived classes must call parent implementation.
*/
public function __construct()
{
|