Ticket #2411: patch-2411.txt

File patch-2411.txt, 1.4 KB (added by matt-bulk-mythtv@…, 18 years ago)

Patch to fix #2411

Line 
1Index: mythweb/modules/_shared/tmpl/wap/header.php
2===================================================================
3--- mythweb/modules/_shared/tmpl/wap/header.php (revision 11220)
4+++ mythweb/modules/_shared/tmpl/wap/header.php (working copy)
5@@ -37,8 +37,8 @@
6     </span>
7 
8 </center><br />
9-<form action="<?php echo root ?>tv/search" method="post">
10-        <center><input type="text" name="searchstr" value="<?php echo $_GET['searchstr'] ?>"><br />
11-        <input type="submit" class="submit" value="search"></center><br />
12+<form action="<?php echo root ?>tv/search" method="get">
13+        <center><input type="text" name="s" value="<?php echo $_GET['s'] ?>"><br />
14+        <input type="submit" class="submit" name="search" value="Search"></center><br />
15 </form>
16 
17Index: mythweb/modules/tv/tmpl/wap/search.php
18===================================================================
19--- mythweb/modules/tv/tmpl/wap/search.php      (revision 11220)
20+++ mythweb/modules/tv/tmpl/wap/search.php      (working copy)
21@@ -23,7 +23,7 @@
22         return;
23     }
24 // Get the url search string so we don't have to recreate it for each sort type
25-    $search_str = '&searchstr='.urlencode($_GET['searchstr']);
26+    $search_str = '&s='.urlencode($_GET['s']);
27     if ($_GET['search_title'])         $search_str .= '&search_title=yes';
28     if ($_GET['search_subtitle'])      $search_str .= '&search_subtitle=yes';
29     if ($_GET['search_description'])   $search_str .= '&search_description=yes';