feed search works now

This commit is contained in:
Andrew Dolgov 2005-08-24 09:15:19 +01:00
parent 62b6c0a8e7
commit 97e98c119c
2 changed files with 2 additions and 2 deletions

View File

@ -204,7 +204,7 @@
print "<tr>
<td colspan=\"3\" class=\"title\">" . $line["title"] . "</td></tr>";
if ($ext == "SEARCH") {
if ($subop == "search") {
$search = $_GET["search"];
$search_query_part = "(upper(title) LIKE upper('%$search%')
OR content LIKE '%$search%') AND";

View File

@ -297,7 +297,7 @@ function search(feed, sender) {
document.getElementById('content').innerHTML='&nbsp;';
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);