]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/searchaction.php
Improved type-hint for following methods:
[quix0rs-gnu-social.git] / lib / searchaction.php
index cc8966eeaed91800b83f2122e69532709e690a92..cc640b739245d341b71dd5fb6b5331af2a24b0dc 100644 (file)
@@ -51,12 +51,12 @@ class SearchAction extends Action
      *
      * @return boolean true
      */
-    function isReadOnly($args)
+    function isReadOnly(array $args=array())
     {
         return true;
     }
 
-    function handle($args)
+    function handle(array $args=array())
     {
         parent::handle($args);
         $this->showPage();
@@ -84,10 +84,6 @@ class SearchAction extends Action
         return null;
     }
 
-    function showNoticeForm() {
-        // remote post notice form
-    }
-
     function showContent() {
         $this->showTop();
         $this->showForm();
@@ -113,7 +109,7 @@ class SearchAction extends Action
         // TRANS: for searching can be entered.
         $this->input('q', _('Keyword(s)'), $q);
         // TRANS: Button text for searching site.
-        $this->submit('search', _m('BUTTON','Search'));
+        $this->element('input', array('type'=>'submit', 'class'=>'submit', 'value'=>_m('BUTTON','Search')));
         $this->elementEnd('li');
         $this->elementEnd('ul');
         $this->elementEnd('fieldset');