summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backend.php2
-rw-r--r--tt-rss.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/backend.php b/backend.php
index 027c7060d..9e47ac38c 100644
--- a/backend.php
+++ b/backend.php
@@ -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";
diff --git a/tt-rss.js b/tt-rss.js
index 16ca4cf1a..1776c1c33 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -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);