]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/searchaction.php
Twitter-compatible API - code cleanup
[quix0rs-gnu-social.git] / lib / searchaction.php
index a9fb77fd3c2f933cc212c299c85272301b4fdbbb..a7bcf3789d51975c16c03dbefb9cede7134292a9 100644 (file)
@@ -49,14 +49,14 @@ class SearchAction extends Action {
        function show_header($arr) {
                return;
        }
-       
+
        function show_form($error=NULL) {
                $q = $this->trimmed('q');
                $page = $this->trimmed('page', 1);
-               
+
                common_show_header($this->get_title(), array($this, 'show_header'), array($q, $error),
                                                   array($this, 'show_top'));
-               common_element_start('form', array('method' => 'post',
+               common_element_start('form', array('method' => 'get',
                                                                                   'id' => 'login',
                                                                                   'action' => common_local_url($this->trimmed('action'))));
                common_element_start('p');
@@ -70,8 +70,8 @@ class SearchAction extends Action {
                                                                          'id' => 'search',
                                                                          'name' => 'search',
                                                                          'class' => 'submit',
-                                                                         'value' => _t('Search')));
-                                          
+                                                                         'value' => _('Search')));
+
                common_element_end('p');
                common_element_end('form');
                if ($q) {
@@ -79,7 +79,7 @@ class SearchAction extends Action {
                }
                common_show_footer();
        }
-       
+
        function search_menu() {
         # action => array('prompt', 'title')
         static $menu =