From: Andrew Dolgov Date: Wed, 24 Aug 2005 08:15:19 +0000 (+0100) Subject: feed search works now X-Git-Tag: 20050825-1~4 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=97e98c119ce2327a54ef39b693e1bd1479fb1bbf;p=tt-rss.git feed search works now --- diff --git a/backend.php b/backend.php index 027c7060..9e47ac38 100644 --- a/backend.php +++ b/backend.php @@ -204,7 +204,7 @@ print " " . $line["title"] . ""; - if ($ext == "SEARCH") { + if ($subop == "search") { $search = $_GET["search"]; $search_query_part = "(upper(title) LIKE upper('%$search%') OR content LIKE '%$search%') AND"; diff --git a/tt-rss.js b/tt-rss.js index 16ca4cf1..1776c1c3 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -297,7 +297,7 @@ function search(feed, sender) { document.getElementById('content').innerHTML=' '; xmlhttp.open("GET", "backend.php?op=viewfeed&feed=" + param_escape(feed) + - "&search=" + param_escape(sender.value) + "&ext=SEARCH", true); + "&search=" + param_escape(sender.value) + "&subop=search", true); xmlhttp.onreadystatechange=viewfeed_callback; xmlhttp.send(null);