]> git.wh0rd.org Git - tt-rss.git/commitdiff
filter prefs: make search case insensitive
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 17 May 2008 02:58:13 +0000 (03:58 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 17 May 2008 02:58:13 +0000 (03:58 +0100)
modules/pref-filters.php

index ac71c96a2549e79bdce3b2b39c9daa9b8688dbaf..9d39258a421a75fc2e918c9878443593cfaa1bcd 100644 (file)
                        <input id=\"filter_search\" size=\"20\" type=\"search\"
                                onchange=\"javascript:updateFilterList()\" value=\"$filter_search\">
                        <input type=\"submit\" class=\"button\" 
-                       onclick=\"javascript:updateFilterList()\" value=\"".__('Search')."\">&nbsp<a class='helpLinkPic' href=\"javascript:displayHelpInfobox(2)\">
-                       <img src='images/sign_quest.gif'></a>
+                       onclick=\"javascript:updateFilterList()\" value=\"".__('Search')."\"><p<a class='helpLinkPic' href=\"javascript:displayHelpInfobox(2)\">
+                       <img src='images/sign_quest.gif'></a></p>
                        </div>";
 
 
                if ($filter_search) {
                        $filter_search = db_escape_string($filter_search);
                        $filter_search_query = "(
-                               ttrss_filter_actions.description LIKE '%$filter_search%' OR 
-                               reg_exp LIKE '%$filter_search%' OR 
-                               ttrss_feeds.title LIKE '%$filter_search%' OR
-                               ttrss_filter_types.description LIKE '%$filter_search%') AND";
+                               UPPER(ttrss_filter_actions.description) LIKE UPPER('%$filter_search%') OR 
+                               UPPER(reg_exp) LIKE UPPER('%$filter_search%') OR 
+                               UPPER(ttrss_feeds.title) LIKE UPPER('%$filter_search%') OR
+                               UPPER(ttrss_filter_types.description) LIKE UPPER('%$filter_search%')) AND";
                } else {
                        $filter_search_query = "";
                }