Revision: 1526
Author: [email protected]
Date: Sat Mar 3 16:06:37 2012
Log: 简单增强搜索功能 Issue 480
http://code.google.com/p/typecho/source/detail?r=1526
Modified:
/trunk/var/Widget/Archive.php
=======================================
--- /trunk/var/Widget/Archive.php Tue Feb 28 22:35:15 2012
+++ /trunk/var/Widget/Archive.php Sat Mar 3 16:06:37 2012
@@ -1082,7 +1082,7 @@
$this->pluginHandle()->trigger($hasPushed)->search($keywords,
$this);
if (!$hasPushed) {
- $searchQuery = '%' . $keywords . '%';
+ $searchQuery = '%' . str_replace(' ', '%', $keywords) . '%';
/** 搜索无法进入隐私项保护归档 */
$select->where('table.contents.password IS NULL')
_______________________________________________
announce mailing list
[email protected]
http://lists.typecho.org/mailman/listinfo/announce