summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--demos/blog/protected/Pages/SearchPost.php2
-rw-r--r--framework/Web/UI/TPage.php1
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()
{